Skip to content

Commit

Permalink
Minor change to satisfy pre-commit-check
Browse files Browse the repository at this point in the history
  • Loading branch information
chinganc committed Jan 7, 2025
1 parent c330724 commit 92e0d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/oai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def _configure_azure_openai(self, config: Dict[str, Any], openai_config: Dict[st
# Create a default Azure token provider if requested
azure_ad_token_provider = openai_config.get("azure_ad_token_provider")
if azure_ad_token_provider is not None:
assert type(azure_ad_token_provider) == str, "azure_ad_token_provider must be a string"
assert isinstance(azure_ad_token_provider, str), "azure_ad_token_provider must be a string"
import azure.identity
if azure_ad_token_provider == "DEFAULT":
azure_ad_token_provider = "https://cognitiveservices.azure.com/.default"
Expand Down

0 comments on commit 92e0d2e

Please sign in to comment.