-
Notifications
You must be signed in to change notification settings - Fork 736
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
Error thrown if type?: function
is not specified specified in tool_choice
#521
Comments
Thanks, I'll look into whether
Yes, that is intended. |
Fixes openai/openai-node#521 Current API behavior is to throw if `type: function` is not provided, my assumption is that `function` is also required. cc @athyuttamre
Thanks for the quick fix!
I don't think this should be the case. I can specify the function that will be called and it should be able to run in parallel as well. If we take a look at the example in the docs, |
I see your point, and you're welcome to suggest that at community.openai.com where the backend teams monitor for API feedback. For now, you can of course work around this by only passing the tool you want called and omitting |
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
To Reproduce
See above.
Also, it looks like parallel function calling is disabled if
tool_choice
is specified, is this intended?Code snippets
No response
OS
macOS
Node version
v18.12.1
Library version
^4.19.0
The text was updated successfully, but these errors were encountered: