From 630fe0b0670c46da356146e3488c8e925166a8e6 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Sat, 21 Jun 2025 21:32:18 -0700 Subject: [PATCH] fix: remove from mcp so that it works with gemini (#2961) --- letta/llm_api/google_vertex_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/llm_api/google_vertex_client.py b/letta/llm_api/google_vertex_client.py index 25b1e00f..c7c49ffa 100644 --- a/letta/llm_api/google_vertex_client.py +++ b/letta/llm_api/google_vertex_client.py @@ -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.")