File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
pydantic_ai_slim/pydantic_ai/providers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ def model_profile(self, model_name: str) -> ModelProfile | None:
4444 # we need to maintain that behavior unless json_schema_transformer is set explicitly.
4545 # This was not the case when using a DeepSeek model with another model class (e.g. BedrockConverseModel or GroqModel),
4646 # so we won't do this in `deepseek_model_profile` unless we learn it's always needed.
47- return OpenAIModelProfile (json_schema_transformer = OpenAIJsonSchemaTransformer ).update (profile )
47+ return OpenAIModelProfile (
48+ json_schema_transformer = OpenAIJsonSchemaTransformer , supports_json_object_output = True
49+ ).update (profile )
4850
4951 @overload
5052 def __init__ (self ) -> None : ...
You can’t perform that action at this time.
0 commit comments