Update chat_completion_proxy.py (#326)
grammar_name Has to be defined, if not there's an issue with line 92
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user