Skip to content
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

Fix parallel_tool_calls when False #333

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

apeccaud
Copy link
Contributor

Currently, when we set parallel_tool_calls=False in the model_settings, the responses API is called with parallel_tool_calls == NotGiven, which defaults to true on the Response API side (https://platform.openai.com/docs/api-reference/responses/create#responses-create-parallel_tool_calls).

This PR attempts to fix that.

agent = Agent(
    ...,
    model_settings=ModelSettings(
        parallel_tool_calls=False,
    ),
)

@rm-openai
Copy link
Collaborator

Thanks for fixing!

@rm-openai rm-openai merged commit 923a354 into openai:main Mar 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants