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: set default `max_length` for koboldcpp backend (#919)

Charles Packer30e312f7bc4b
diff --git a/memgpt/local_llm/koboldcpp/api.py b/memgpt/local_llm/koboldcpp/api.py
index 79729af15..4b720d4d1 100644
--- a/memgpt/local_llm/koboldcpp/api.py
+++ b/memgpt/local_llm/koboldcpp/api.py
@@ -21,6 +21,7 @@ def get_koboldcpp_completion(endpoint, auth_type, auth_key, prompt, context_wind
request = settings
request["prompt"] = prompt
request["max_context_length"] = context_window
+ request["max_length"] = 400 # if we don't set this, it'll default to 100 which is quite short
# Set grammar
if grammar is not None: