mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-29 01:58:14 +00:00
fix: use response_json_schema
This commit is contained in:
@@ -466,9 +466,9 @@ class GeminiCompletion(BaseLLM):
|
||||
if response_model:
|
||||
config_params["response_mime_type"] = "application/json"
|
||||
schema_output = generate_model_description(response_model)
|
||||
config_params["response_schema"] = schema_output.get("json_schema", {}).get(
|
||||
"schema", {}
|
||||
)
|
||||
config_params["response_json_schema"] = schema_output.get(
|
||||
"json_schema", {}
|
||||
).get("schema", {})
|
||||
|
||||
# Handle tools for supported models
|
||||
if tools and self.supports_tools:
|
||||
|
||||
Reference in New Issue
Block a user