From dbbb3fc14b9aa28aa7f2e671f654404f98d78e01 Mon Sep 17 00:00:00 2001 From: borewik Date: Mon, 6 Nov 2023 21:53:17 +0100 Subject: [PATCH] Update chat_completion_proxy.py (#326) grammar_name Has to be defined, if not there's an issue with line 92 --- memgpt/local_llm/chat_completion_proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/memgpt/local_llm/chat_completion_proxy.py b/memgpt/local_llm/chat_completion_proxy.py index dd386893..9cfde1ec 100644 --- a/memgpt/local_llm/chat_completion_proxy.py +++ b/memgpt/local_llm/chat_completion_proxy.py @@ -29,6 +29,7 @@ def get_chat_completion( ): global has_shown_warning grammar = None + grammar_name = None if HOST is None: raise ValueError(f"The OPENAI_API_BASE environment variable is not defined. Please set it in your environment.")