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.pyindex 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_windrequest = settingsrequest["prompt"] = promptrequest["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 grammarif grammar is not None: