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):
try:
self.client = openai.AzureOpenAI(
azure_deployment=str(deployment_name) if deployment_name else None,
api_key=str(api_key),
azure_endpoint=str(azure_endpoint),
api_version=str(api_version),
azure_deployment=str(self.deployment_name)
if self.deployment_name
else None,
api_key=str(self.api_key),
azure_endpoint=str(self.azure_endpoint),
api_version=str(self.api_version),
# _strict_response_validation=True,
)
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