Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Merge branch 'main' into release-0.7.3

Sarah Wooders3fe69741b819
diff --cc letta/llm_api/google_ai_client.py
index dc20f1f45,d8bdf1ef4..ffa6c4384
--- a/letta/llm_api/google_ai_client.py
+++ b/letta/llm_api/google_ai_client.py
@@@ -326,8 -360,12 +326,12 @@@ class GoogleAIClient(LLMClientBase)
for func in function_list:
# Note: Google AI API used to have weird casing requirements, but not any more
+ # Google AI API only supports a subset of OpenAPI 3.0, so unsupported params must be cleaned
+ if "parameters" in func and isinstance(func["parameters"], dict):
+ self._clean_google_ai_schema_properties(func["parameters"])
+
# Add inner thoughts
- if self.llm_config.put_inner_thoughts_in_kwargs:
+ if llm_config.put_inner_thoughts_in_kwargs:
from letta.local_llm.constants import INNER_THOUGHTS_KWARG, INNER_THOUGHTS_KWARG_DESCRIPTION
func["parameters"]["properties"][INNER_THOUGHTS_KWARG] = {