Skip to content

Commit

Permalink
Update chat_completion_proxy.py (#326)
Browse files Browse the repository at this point in the history
grammar_name Has to be defined, if not there's an issue with line 92
  • Loading branch information
borewik authored Nov 6, 2023
1 parent facaf34 commit 85a54b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memgpt/local_llm/chat_completion_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 85a54b4

Please sign in to comment.