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: anthropic message creation bug (#1299)

cthomas86c2640227da
diff --git a/letta/llm_api/anthropic.py b/letta/llm_api/anthropic.py
index a19ffe4bd..4ba9b9c98 100644
--- a/letta/llm_api/anthropic.py
+++ b/letta/llm_api/anthropic.py
@@ -840,7 +840,7 @@ def anthropic_chat_completions_process_stream(
# Create a dummy message for ID/datetime if needed
dummy_message = _Message(
role=_MessageRole.assistant,
- text="",
+ content=[],
agent_id="",
model="",
name=None,