Skip to content

Conversation

@pamelafox
Copy link
Contributor

Fixes #3270 as suggested by @DouweM in that thread. (Does not yet add a vLLMProvider however.)

This PR adds support for openai_supports_tool_choice_required to the OpenAI Responses API, which was already supported for the OpenAI Chat Completions API.

I added a unit test based off the test that was added for the original openai_supports_tool_choice_required change.

@DouweM DouweM changed the title Add openai_supports_tool_choice_required to OpenAI Responses API Respecr openai_supports_tool_choice_required model profile setting in OpenAIResponsesModel Oct 28, 2025
@pamelafox pamelafox changed the title Respecr openai_supports_tool_choice_required model profile setting in OpenAIResponsesModel Respect openai_supports_tool_choice_required model profile setting in OpenAIResponsesModel Oct 28, 2025
@DouweM DouweM enabled auto-merge (squash) October 28, 2025 18:48
@DouweM
Copy link
Collaborator

DouweM commented Oct 28, 2025

@pamelafox Thanks Pamela, enabled the auto-merge!

@DouweM DouweM merged commit c4c9e77 into pydantic:main Oct 28, 2025
58 of 60 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.

openai_supports_tool_choice_required=False is still setting tool_choice to required for Responses

2 participants