Skip to content

Commit

Permalink
ignore type check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinheiroms committed Oct 20, 2024
1 parent b8859fe commit 3cb9635
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_completion_client_from_env(env: Dict[str, str] | None = None, **kwarg

# Instantiate the correct client
if _provider == "openai":
return OpenAIChatCompletionClient(**_kwargs)
return OpenAIChatCompletionClient(**_kwargs) # type: ignore
elif _provider == "azure":
if _kwargs.get("azure_ad_token_provider", "").lower() == "default":
if _default_azure_ad_token_provider is None:
Expand All @@ -75,7 +75,7 @@ def create_completion_client_from_env(env: Dict[str, str] | None = None, **kwarg
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
)
_kwargs["azure_ad_token_provider"] = _default_azure_ad_token_provider
return AzureOpenAIChatCompletionClient(**_kwargs)
return AzureOpenAIChatCompletionClient(**_kwargs) # type: ignore
else:
raise ValueError(f"Unknown OAI provider '{_provider}'")

Expand Down

0 comments on commit 3cb9635

Please sign in to comment.