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:
borewik
2023-11-06 21:53:17 +01:00
committed by GitHub
parent f5e6497668
commit dbbb3fc14b

View File

@@ -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.")