We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tool_choice=required
1 parent 60ab78f commit 0164692Copy full SHA for 0164692
pydantic_ai_slim/pydantic_ai/providers/deepseek.py
@@ -53,6 +53,8 @@ def model_profile(self, model_name: str) -> ModelProfile | None:
53
openai_chat_thinking_field='reasoning_content',
54
# Starting from DeepSeek v3.2, DeepSeek requires sending thinking parts for optimal agentic performance.
55
openai_chat_send_back_thinking_parts='field',
56
+ # DeepSeek v3.2 reasoning mode does not support tool_choice=required yet
57
+ openai_supports_tool_choice_required=(model_name != 'deepseek-reasoner'),
58
).update(profile)
59
60
@overload
0 commit comments