Fix Azure Config file location
parent
4c2a566acc
commit
fc6070d574
|
@ -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:
|
||||
"""
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue