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.

Use default context window size if none found

Will Sargent35cad13520b6
diff --git a/letta/schemas/providers.py b/letta/schemas/providers.py
index 9084c7291..1889c1814 100644
--- a/letta/schemas/providers.py
+++ b/letta/schemas/providers.py
@@ -208,8 +208,7 @@ class OpenAIProvider(Provider):
if model_name in LLM_MAX_TOKENS:
return LLM_MAX_TOKENS[model_name]
else:
- return None
-
+ return LLM_MAX_TOKENS["DEFAULT"]
class xAIProvider(OpenAIProvider):
"""https://docs.x.ai/docs/api-reference"""