-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function calling #119
Comments
Hi @jcastdev, functions to call are |
how to proved function list to the model, are there any examples? |
@b8kings0ga |
yeah,I have tried with it using autogen and autogpt, none of them seem to doing the function call
…---Original---
From: ***@***.***>
Date: Thu, Feb 22, 2024 00:36 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [MeetKai/functionary] Function calling (Issue #119)
@b8kings0ga
You can provide the list of functions through the format of tool, as in the example: https://github.com/MeetKai/functionary?tab=readme-ov-file#openai-compatible-usage
Actually, if you are using OpenAI function calling model, you just need to replace:
client = OpenAI(api_key="xxx")
with
client = OpenAI(base_url="http://localhost:8000/v1", api_key="xxx")
Other parts are the same, no need to change anything
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sorry, im cannot understand where are functions that model decide to call . for example get_weather()...? In open ai code I wrote my own functions that model decide to call.. here where are those functions?
thanks..
The text was updated successfully, but these errors were encountered: