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 empty response check (#1397)

cthomas71a18ff2ff8c
diff --git a/letta/llm_api/anthropic.py b/letta/llm_api/anthropic.py
index fd8d11953..50f789ad8 100644
--- a/letta/llm_api/anthropic.py
+++ b/letta/llm_api/anthropic.py
@@ -352,7 +352,7 @@ def convert_anthropic_response_to_chatcompletion(
redacted_reasoning_content = None
tool_calls = None
- if len(response.content) > 1:
+ if len(response.content) > 0:
for content_part in response.content:
if content_part.type == "text":
content = strip_xml_tags(string=content_part.text, tag=inner_thoughts_xml_tag)