-
Notifications
You must be signed in to change notification settings - Fork 285
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
feat(playground): wire up tool calling ui #5029
Conversation
@@ -81,6 +81,7 @@ export function PlaygroundTool({ | |||
instanceId: playgroundInstanceId, | |||
patch: { | |||
tools: instanceTools.filter((t) => t.id !== tool.id), | |||
toolChoice: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this? i mean moving to undefined, does openai not want something if there are no tools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly, the openai api throws if you send in tool_choice
but no tools.
e3df4fd
to
ff7c53d
Compare
Looks like these playwright tests are failing on the |
Wires up tool calling in the UI.
tool_calling_demo.mp4
resolves #4988