Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Revert "cleanup"
Vivian Fang069b55faa09d
diff --git a/memgpt/local_llm/chat_completion_proxy.py b/memgpt/local_llm/chat_completion_proxy.pyindex d31dc767c..de9da221f 100644--- a/memgpt/local_llm/chat_completion_proxy.py+++ b/memgpt/local_llm/chat_completion_proxy.py@@ -5,14 +5,12 @@ import requestsimport jsonfrom .webui.api import get_webui_completion-from .llm_chat_completion_wrappers import airoboros, dolphin+from .llm_chat_completion_wrappers import airoborosfrom .utils import DotDictHOST = os.getenv("OPENAI_API_BASE")HOST_TYPE = os.getenv("BACKEND_TYPE") # default None == ChatCompletionDEBUG = False-# DEBUG = True-DEFAULT_WRAPPER = airoboros.Airoboros21InnerMonologueWrapper()async def get_chat_completion(@@ -24,14 +22,14 @@ async def get_chat_completion(if function_call != "auto":raise ValueError(f"function_call == {function_call} not supported (auto only)")- if model == "airoboros-l2-70b-2.1":- llm_wrapper = airoboros.Airoboros21InnerMonologueWrapper()- elif model == "dolphin-2.1-mistral-7b":- llm_wrapper = dolphin.Dolphin21MistralWrapper()+ if model == "airoboros_v2.1":+ llm_wrapper = airoboros.Airoboros21Wrapper()else:# Warn the user that we're using the fallback- print(f"Warning: no wrapper specified for local LLM, using the default wrapper")- llm_wrapper = DEFAULT_WRAPPER+ print(+ f"Warning: could not find an LLM wrapper for {model}, using the airoboros wrapper"+ )+ llm_wrapper = airoboros.Airoboros21Wrapper()# First step: turn the message sequence into a prompt that the model expectsprompt = llm_wrapper.chat_completion_to_prompt(messages, functions)