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.
1 parent 8be5360 commit 6b28ffaCopy full SHA for 6b28ffa
pydantic_ai_slim/pydantic_ai/providers/deepseek.py
@@ -47,9 +47,8 @@ def model_profile(self, model_name: str) -> ModelProfile | None:
47
return OpenAIModelProfile(
48
json_schema_transformer=OpenAIJsonSchemaTransformer,
49
openai_chat_custom_reasoning_field='reasoning_content',
50
- # DeepSeek recommends against sending back unchanged reasoning parts in requests.
51
- # The following is for compatibility with existing behavior. May want to change later.
52
- openai_chat_send_back_thinking_parts='thinking_tags',
+ # Starting from DeepSeek v3.2, DeepSeek requires sending thinking parts for optimal agentic performance.
+ openai_chat_send_back_thinking_parts='custom_field',
53
).update(profile)
54
55
@overload
0 commit comments