fix: remove from mcp so that it works with gemini (#2961)
This commit is contained in:
@@ -90,7 +90,7 @@ class GoogleVertexClient(LLMClientBase):
|
||||
# Per https://ai.google.dev/gemini-api/docs/function-calling?example=meeting#notes_and_limitations
|
||||
# * Only a subset of the OpenAPI schema is supported.
|
||||
# * Supported parameter types in Python are limited.
|
||||
unsupported_keys = ["default", "exclusiveMaximum", "exclusiveMinimum", "additionalProperties"]
|
||||
unsupported_keys = ["default", "exclusiveMaximum", "exclusiveMinimum", "additionalProperties", "$schema"]
|
||||
keys_to_remove_at_this_level = [key for key in unsupported_keys if key in schema_part]
|
||||
for key_to_remove in keys_to_remove_at_this_level:
|
||||
logger.warning(f"Removing unsupported keyword '{key_to_remove}' from schema part.")
|
||||
|
||||
Reference in New Issue
Block a user