Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: don't throw error if `name` passed in for Google (just print a warning) (#1017)
Sarah Wooders3d2c28d938c6
diff --git a/letta/schemas/message.py b/letta/schemas/message.pyindex 1e3f4a98c..d98e87696 100644--- a/letta/schemas/message.py+++ b/letta/schemas/message.py@@ -647,7 +647,7 @@ class Message(BaseMessage):# role: str ('user' or 'model')if self.role != "tool" and self.name is not None:- raise UserWarning(f"Using Google AI with non-null 'name' field ({self.name}) not yet supported.")+ warnings.warn(f"Using Google AI with non-null 'name' field ({self.name}) not yet supported.")if self.role == "system":# NOTE: Gemini API doesn't have a 'system' role, use 'user' instead