Skip to content
Snippets Groups Projects
Commit 284950f4 authored by szelesaron's avatar szelesaron
Browse files

fixed #188

parent cbae899a
No related branches found
No related tags found
Loading
...@@ -66,10 +66,10 @@ class AzureOpenAIEncoder(BaseEncoder): ...@@ -66,10 +66,10 @@ class AzureOpenAIEncoder(BaseEncoder):
try: try:
self.client = openai.AzureOpenAI( self.client = openai.AzureOpenAI(
azure_deployment=str(deployment_name) if deployment_name else None, azure_deployment=str(self.deployment_name) if self.deployment_name else None,
api_key=str(api_key), api_key=str(self.api_key),
azure_endpoint=str(azure_endpoint), azure_endpoint=str(self.azure_endpoint),
api_version=str(api_version), api_version=str(self.api_version),
# _strict_response_validation=True, # _strict_response_validation=True,
) )
except Exception as e: except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment