-
-
Notifications
You must be signed in to change notification settings - Fork 277
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 #129
Comments
Not sure about the direct call with curl but the library worked for me, using gpt-4-turbo-preview, and adding a 'tools' param into args for $open_ai->chat(). You need to be real careful with the JSON If using json_decode as it will silently fail on JSON errors unless you specifically check:
|
Describe the feature or improvement you're requesting
does this library not support function calling? Tried but could not get this to work
as also noted in
#98
https://platform.openai.com/docs/api-reference/chat/create
Additional context
No response
The text was updated successfully, but these errors were encountered: