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.

patch bug with raw mode (#663)

Charles Packer3bc9ed01f7f8
diff --git a/memgpt/local_llm/ollama/api.py b/memgpt/local_llm/ollama/api.py
index 38a84937c..b351bbe52 100644
--- a/memgpt/local_llm/ollama/api.py
+++ b/memgpt/local_llm/ollama/api.py
@@ -44,10 +44,11 @@ def get_ollama_completion(endpoint, model, prompt, context_window, grammar=None)
# "format": "json", # TODO eventually support
"stream": False,
"options": settings,
- "system": "", # no prompt formatting
- "template": "{{ .Prompt }}", # no prompt formatting
"raw": True, # no prompt formatting
- "context": None, # no memory via prompt formatting
+ # "raw mode does not support template, system, or context"
+ # "system": "", # no prompt formatting
+ # "template": "{{ .Prompt }}", # no prompt formatting
+ # "context": None, # no memory via prompt formatting
}
# Set grammar