-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Support parallel function calling in pydantic program #8793
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
arguments_str = function_call["arguments"] | ||
print(f"Function call: {name} with args: {arguments_str}") | ||
|
||
if isinstance(function_call["arguments"], dict): |
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.
ooc when would it be one or the other
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.
this is existing code we have. I think it was due to difference in OpenAI and AzureOpenAI behavior in the past. we should probably validate and strip this out sometime in the future.
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.
lgtm!
Potentially nit/silly question: but is there a reason we need both Model
and BaseModel
?
Took a look again, the |
* migrate to tool calls * wip * wip * wip * wi
Description
Support parallel function calling in pydantic program