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.

docs: add documentation for DeepSeek integration (#1069)

Sarah Wooders81ba0a65672b
diff --git a/letta/llm_api/openai.py b/letta/llm_api/openai.py
index c793a49f1..c22caeece 100644
--- a/letta/llm_api/openai.py
+++ b/letta/llm_api/openai.py
@@ -390,7 +390,7 @@ def openai_chat_completions_process_stream(
chat_completion_response.usage.completion_tokens = n_chunks
chat_completion_response.usage.total_tokens = prompt_tokens + n_chunks
- assert len(chat_completion_response.choices) > 0, chat_completion_response
+ assert len(chat_completion_response.choices) > 0, f"No response from provider {chat_completion_response}"
# printd(chat_completion_response)
return chat_completion_response