The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
formatting
Tim Elfrinkd92092f04003
diff --git a/litellm/litellm_core_utils/get_supported_openai_params.py b/litellm/litellm_core_utils/get_supported_openai_params.pyindex e17a0a88a0e..b71b609cc50 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: PLR0915from 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.pyindex de363654feb..8ef2a54c62d 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 parametersbase_params = super().get_supported_openai_params(model)-+# Add thinking and reasoning parameters for Anthropic Claude modelsif "claude" in model.lower():base_params.extend(["thinking", "reasoning_effort"])-+return base_paramsdef _determine_initiator(self, messages: List[AllMessageValues]) -> str:diff --git a/litellm/llms/github_copilot/common_utils.py b/litellm/llms/github_copilot/common_utils.pyindex 4c9a4b6dad0..86fbb706e52 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