From 3cb9635902defe1c9c20f4076dd46fe8db1410ef Mon Sep 17 00:00:00 2001 From: Leonardo Pinheiro Date: Mon, 21 Oct 2024 07:40:04 +1000 Subject: [PATCH] ignore type check errors --- .../autogen-magentic-one/src/autogen_magentic_one/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-magentic-one/src/autogen_magentic_one/utils.py b/python/packages/autogen-magentic-one/src/autogen_magentic_one/utils.py index c7b15fe89e65..64c07313c557 100644 --- a/python/packages/autogen-magentic-one/src/autogen_magentic_one/utils.py +++ b/python/packages/autogen-magentic-one/src/autogen_magentic_one/utils.py @@ -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: @@ -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}'")