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: changed all instances of 16384 to 8192 (gpt4 context window) (#605)

Charles Packer1272ba6612af
diff --git a/letta/schemas/llm_config.py b/letta/schemas/llm_config.py
index 0be4f8188..970579ea9 100644
--- a/letta/schemas/llm_config.py
+++ b/letta/schemas/llm_config.py
@@ -96,7 +96,7 @@ class LLMConfig(BaseModel):
model="memgpt-openai",
model_endpoint_type="openai",
model_endpoint="https://inference.memgpt.ai",
- context_window=16384,
+ context_window=8192,
)
else:
raise ValueError(f"Model {model_name} not supported.")
diff --git a/letta/schemas/providers.py b/letta/schemas/providers.py
index 5ab6cad71..407418a95 100644
--- a/letta/schemas/providers.py
+++ b/letta/schemas/providers.py
@@ -63,7 +63,7 @@ class LettaProvider(Provider):
model="letta-free", # NOTE: renamed
model_endpoint_type="openai",
model_endpoint="https://inference.memgpt.ai",
- context_window=16384,
+ context_window=8192,
handle=self.get_handle("letta-free"),
)
]
diff --git a/tests/configs/llm_model_configs/letta-hosted.json b/tests/configs/llm_model_configs/letta-hosted.json
index a0367c469..82ece9e4d 100644
--- a/tests/configs/llm_model_configs/letta-hosted.json
+++ b/tests/configs/llm_model_configs/letta-hosted.json
@@ -1,7 +1,7 @@
{
- "context_window": 16384,
- "model_endpoint_type": "openai",
- "model_endpoint": "https://inference.memgpt.ai",
- "model": "memgpt-openai",
- "put_inner_thoughts_in_kwargs": true
+ "context_window": 8192,
+ "model_endpoint_type": "openai",
+ "model_endpoint": "https://inference.memgpt.ai",
+ "model": "memgpt-openai",
+ "put_inner_thoughts_in_kwargs": true
}