Skip to content

Support parallel_tool_calls=False for ChatCompletion API #513

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

ronaldchwu
Copy link
Contributor

The current ChatCompletion API supports only parallel_tool_calls=True or parallel_tool_calls=NOT_GIVEN
This PR is to support setting parallel_tool_calls=False, a common requirement in controlling agent tool use patterns (e.g. ensuring one tool call at the time, to facilitate desired tool calling sequence).

I followed the merged PR#333 for consistency.

Copy link
Collaborator

@rm-openai rm-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@rm-openai rm-openai merged commit b978b43 into openai:main Apr 15, 2025
5 checks passed
@ronaldchwu ronaldchwu deleted the support-parallel-tool-calls-false branch April 15, 2025 05:56
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.

2 participants