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.
This commit is contained in:
Tim Elfrink 2025-08-19 08:21:18 +02:00
parent 8b66b50c31
commit 9f82b89051

View File

@ -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(