Fix Azure Config file location

pull/2352/head
Yun Zheng 2023-04-18 17:03:48 +08:00
parent 4c2a566acc
commit fc6070d574
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class Config(metaclass=Singleton):
else:
return ""
AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "..", "azure.yaml")
AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../..", "azure.yaml")
def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> None:
"""

View File

@ -83,7 +83,7 @@ def create_chat_completion(
try:
if CFG.use_azure:
response = openai.ChatCompletion.create(
deployment_id=CFG.get_azure_deployment_id_for_model(model),
engine=CFG.get_azure_deployment_id_for_model(model),
model=model,
messages=messages,
temperature=temperature,