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