diff --git a/pydantic_ai_slim/pydantic_ai/providers/deepseek.py b/pydantic_ai_slim/pydantic_ai/providers/deepseek.py index f2d2e65ffd..de147028dd 100644 --- a/pydantic_ai_slim/pydantic_ai/providers/deepseek.py +++ b/pydantic_ai_slim/pydantic_ai/providers/deepseek.py @@ -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: ...