(fix) add azure/ to model. TY Krrish !

This commit is contained in:
ishaan-jaff 2023-11-23 21:44:06 -08:00
parent c9e37b8fb8
commit 824136667f

View file

@ -194,7 +194,7 @@ class AzureChatCompletion(BaseLLM):
azure_client_params["azure_ad_token"] = azure_ad_token
azure_client = AsyncAzureOpenAI(**azure_client_params)
response = await azure_client.chat.completions.create(**data)
response.model = "azure" + str(response.model)
response.model = "azure/" + str(response.model)
return convert_to_model_response_object(response_object=json.loads(response.model_dump_json()), model_response_object=model_response)
except Exception as e:
if isinstance(e,httpx.TimeoutException):