Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pydantic_ai_slim/pydantic_ai/providers/deepseek.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def model_profile(self, model_name: str) -> ModelProfile | None:
# we need to maintain that behavior unless json_schema_transformer is set explicitly.
# This was not the case when using a DeepSeek model with another model class (e.g. BedrockConverseModel or GroqModel),
# so we won't do this in `deepseek_model_profile` unless we learn it's always needed.
return OpenAIModelProfile(json_schema_transformer=OpenAIJsonSchemaTransformer).update(profile)
return OpenAIModelProfile(
json_schema_transformer=OpenAIJsonSchemaTransformer, supports_json_object_output=True
).update(profile)

@overload
def __init__(self) -> None: ...
Expand Down