Skip to content

Commit

Permalink
Fix azure_openai.py
Browse files Browse the repository at this point in the history
Azure OpenAI api key (when not using active directory authentication) was not being passed to the underlying openai object.
  • Loading branch information
ak11234 committed Sep 13, 2024
1 parent 2f4a80f commit 7e4e150
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandasai/llm/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def _client_params(self) -> Dict[str, any]:
"azure_deployment": self.deployment_name,
"azure_ad_token": self.azure_ad_token,
"azure_ad_token_provider": self.azure_ad_token_provider,
"api_key": self.api_token,
}
return {**client_params, **super()._client_params}

Expand Down

0 comments on commit 7e4e150

Please sign in to comment.