From 9f82b89051bb2ef5d9938493e8a93b45b1346c23 Mon Sep 17 00:00:00 2001 From: Tim Elfrink Date: Tue, 19 Aug 2025 08:21:18 +0200 Subject: [PATCH] fix: remove redundant github_copilot check in get_supported_openai_params The provider_config_manager already handles github_copilot provider through LlmProviders.GITHUB_COPILOT mapping, making the explicit check unnecessary. --- litellm/litellm_core_utils/get_supported_openai_params.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/litellm_core_utils/get_supported_openai_params.py b/litellm/litellm_core_utils/get_supported_openai_params.py index b71b609cc5..35a3af0939 100644 --- a/litellm/litellm_core_utils/get_supported_openai_params.py +++ b/litellm/litellm_core_utils/get_supported_openai_params.py @@ -270,8 +270,6 @@ def get_supported_openai_params( # noqa: PLR0915 return ElevenLabsAudioTranscriptionConfig().get_supported_openai_params( model=model ) - elif custom_llm_provider == "github_copilot": - return litellm.GithubCopilotConfig().get_supported_openai_params(model=model) elif custom_llm_provider in litellm._custom_providers: if request_type == "chat_completion": provider_config = litellm.ProviderConfigManager.get_provider_chat_config(