Skip to content
Snippets Groups Projects
Unverified Commit 0cd4c37a authored by James Briggs's avatar James Briggs Committed by GitHub
Browse files

Merge pull request #189 from szelesaron/fixes-AzureOpenAIEncoder

fix: fixes #188 ```AzureOpenAIEncoder``` issue
parents cbae899a 31d78a97
No related branches found
No related tags found
No related merge requests found
...@@ -66,10 +66,12 @@ class AzureOpenAIEncoder(BaseEncoder): ...@@ -66,10 +66,12 @@ 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)
api_key=str(api_key), if self.deployment_name
azure_endpoint=str(azure_endpoint), else None,
api_version=str(api_version), api_key=str(self.api_key),
azure_endpoint=str(self.azure_endpoint),
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