Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: enable gemini reasoning toggle on server (#5129)
cthomas61b41a05583a
diff --git a/letta/schemas/llm_config.py b/letta/schemas/llm_config.pyindex 7d74ced29..426f11edb 100644--- a/letta/schemas/llm_config.py+++ b/letta/schemas/llm_config.py@@ -285,21 +285,18 @@ class LLMConfig(BaseModel):config.verbosity = "medium"return config- # Anthropic 3.7/4: toggle honored- if cls.is_anthropic_reasoning_model(config):+ # Anthropic 3.7/4 and Gemini: toggle honored+ if (+ cls.is_anthropic_reasoning_model(config)+ or cls.is_google_vertex_reasoning_model(config)+ or cls.is_google_ai_reasoning_model(config)+ ):config.enable_reasoner = bool(reasoning)config.put_inner_thoughts_in_kwargs = Falseif config.enable_reasoner and config.max_reasoning_tokens == 0:config.max_reasoning_tokens = 1024return config- # Gemini (Vertex or Google AI): force disabled for v1 until native support- if cls.is_google_vertex_reasoning_model(config) or cls.is_google_ai_reasoning_model(config):- config.put_inner_thoughts_in_kwargs = False- config.enable_reasoner = False- config.max_reasoning_tokens = 0- return config-# Everything else: disabled (no inner_thoughts-in-kwargs simulation)config.put_inner_thoughts_in_kwargs = Falseconfig.enable_reasoner = False