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.

cleanup

Charles Packer2c7a87a59956
diff --git a/memgpt/local_llm/chat_completion_proxy.py b/memgpt/local_llm/chat_completion_proxy.py
index bd1c9dfdd..8dfb4f903 100644
--- a/memgpt/local_llm/chat_completion_proxy.py
+++ b/memgpt/local_llm/chat_completion_proxy.py
@@ -23,14 +23,14 @@ async def get_chat_completion(
if function_call != "auto":
raise ValueError(f"function_call == {function_call} not supported (auto only)")
- if model == "airoboros_v2.1":
- llm_wrapper = airoboros.Airoboros21Wrapper()
+ if model == "airoboros-l2-70b-2.1":
+ llm_wrapper = airoboros.Airoboros21InnerMonologueWrapper()
+ elif model == "dolphin-2.1-mistral-7b":
+ llm_wrapper = dolphin.Dolphin21MistralWrapper()
else:
# Warn the user that we're using the fallback
- print(
- f"Warning: could not find an LLM wrapper for {model}, using the airoboros wrapper"
- )
- llm_wrapper = airoboros.Airoboros21Wrapper()
+ print(f"Warning: no wrapper specified for local LLM, using the default wrapper")
+ llm_wrapper = DEFAULT_WRAPPER
# First step: turn the message sequence into a prompt that the model expects
prompt = llm_wrapper.chat_completion_to_prompt(messages, functions)
diff --git a/memgpt/local_llm/llm_chat_completion_wrappers/dolphin.py b/memgpt/local_llm/llm_chat_completion_wrappers/dolphin.py
index d1ae5f22e..0ce5d4b12 100644
--- a/memgpt/local_llm/llm_chat_completion_wrappers/dolphin.py
+++ b/memgpt/local_llm/llm_chat_completion_wrappers/dolphin.py
@@ -188,7 +188,6 @@ class Dolphin21MistralWrapper(LLMChatCompletionWrapper):
if self.include_opening_brance_in_prefix:
prompt += "\n{"
- print(prompt)
return prompt
def clean_function_args(self, function_name, function_args):