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.

Ari/let 5486 badrequesterror error code 400 error message requested [LET-5486] (#5422)

Ari Webb624c59182049
diff --git a/letta/llm_api/openai_client.py b/letta/llm_api/openai_client.py
index 0e8b8e395..1e259742a 100644
--- a/letta/llm_api/openai_client.py
+++ b/letta/llm_api/openai_client.py
@@ -727,7 +727,7 @@ class OpenAIClient(LLMClientBase):
# queue of (start_idx, chunk_inputs) to process
chunks_to_process = [(i, inputs[i : i + 2048]) for i in range(0, len(inputs), 2048)]
- min_chunk_size = 256
+ min_chunk_size = 64
while chunks_to_process:
tasks = []