diff --git a/litellm/litellm_core_utils/get_supported_openai_params.py b/litellm/litellm_core_utils/get_supported_openai_params.py index e17a0a88a0..b71b609cc5 100644 --- a/litellm/litellm_core_utils/get_supported_openai_params.py +++ b/litellm/litellm_core_utils/get_supported_openai_params.py @@ -266,10 +266,9 @@ def get_supported_openai_params( # noqa: PLR0915 from litellm.llms.elevenlabs.audio_transcription.transformation import ( ElevenLabsAudioTranscriptionConfig, ) - return ( - ElevenLabsAudioTranscriptionConfig().get_supported_openai_params( - model=model - ) + + return ElevenLabsAudioTranscriptionConfig().get_supported_openai_params( + model=model ) elif custom_llm_provider == "github_copilot": return litellm.GithubCopilotConfig().get_supported_openai_params(model=model) diff --git a/litellm/llms/github_copilot/chat/transformation.py b/litellm/llms/github_copilot/chat/transformation.py index de363654fe..8ef2a54c62 100644 --- a/litellm/llms/github_copilot/chat/transformation.py +++ b/litellm/llms/github_copilot/chat/transformation.py @@ -80,17 +80,17 @@ class GithubCopilotConfig(OpenAIConfig): def get_supported_openai_params(self, model: str) -> list: """ Get supported OpenAI parameters for GitHub Copilot. - + For Anthropic models (like claude-sonnet-4), includes thinking and reasoning parameters. For other models, returns standard OpenAI parameters. """ # Get base OpenAI parameters base_params = super().get_supported_openai_params(model) - + # Add thinking and reasoning parameters for Anthropic Claude models if "claude" in model.lower(): base_params.extend(["thinking", "reasoning_effort"]) - + return base_params def _determine_initiator(self, messages: List[AllMessageValues]) -> str: diff --git a/litellm/llms/github_copilot/common_utils.py b/litellm/llms/github_copilot/common_utils.py index 4c9a4b6dad..86fbb706e5 100644 --- a/litellm/llms/github_copilot/common_utils.py +++ b/litellm/llms/github_copilot/common_utils.py @@ -28,7 +28,6 @@ class GithubCopilotError(BaseLLMException): ) - class GetDeviceCodeError(GithubCopilotError): pass