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.

fix: small patch for discord (due to python version i thnk) (#1469)

Charles Packer346caee7ca4d
diff --git a/letta/llm_api/anthropic_client.py b/letta/llm_api/anthropic_client.py
index a96a3d294..16bb2e211 100644
--- a/letta/llm_api/anthropic_client.py
+++ b/letta/llm_api/anthropic_client.py
@@ -122,7 +122,7 @@ class AnthropicClient(LLMClientBase):
# Move 'system' to the top level
if data["messages"][0]["role"] != "system":
- raise RuntimeError(f"First message is not a system message, instead has role {data["messages"][0]["role"]}")
+ raise RuntimeError(f'First message is not a system message, instead has role {data["messages"][0]["role"]}')
data["system"] = data["messages"][0]["content"]
data["messages"] = data["messages"][1:]