You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just trying to get funtionary with chatlab to work and tried the flip a coin example:
Without the chat.register() call or without asking the ai to call the function it works perfectly, but with the "Flip a coin" chat an unknown finish reason "tool_calls" displays.
What I Did
import asyncio
from chatlab import Chat
import os
import random
os.environ['OPENAI_API_KEY'] = "functionary"
def flip_a_coin():
"""this function is used to flip a coin"""
return random.choice(["heads", "tails"])
chat = Chat(model="meetkai/functionary-7b-v2", base_url="http://localhost:8000/v1")
chat.register(flip_a_coin)
asyncio.run(chat("Flip a coin for me"))
UNKNOWN FINISH REASON: 'tool_calls'. If you see this message, report it as an issue to https://github.com/rgbkrk/chatlab/issues
The text was updated successfully, but these errors were encountered:
Description
I was just trying to get funtionary with chatlab to work and tried the flip a coin example:
Without the chat.register() call or without asking the ai to call the function it works perfectly, but with the "Flip a coin" chat an unknown finish reason "tool_calls" displays.
What I Did
UNKNOWN FINISH REASON: 'tool_calls'. If you see this message, report it as an issue to https://github.com/rgbkrk/chatlab/issues
The text was updated successfully, but these errors were encountered: