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
fix(lint): remove unused Any/cast imports in github_copilot transformation (#20431)
jquinter47b546f69a74
diff --git a/litellm/llms/github_copilot/chat/transformation.py b/litellm/llms/github_copilot/chat/transformation.pyindex 945b7ebf7ff..d613c82402d 100644--- a/litellm/llms/github_copilot/chat/transformation.py+++ b/litellm/llms/github_copilot/chat/transformation.py@@ -1,4 +1,4 @@-from typing import Any, List, Optional, Tuple, cast+from typing import List, Optional, Tuplefrom litellm.exceptions import AuthenticationErrorfrom litellm.llms.openai.openai import OpenAIConfig@@ -54,7 +54,7 @@ class GithubCopilotConfig(OpenAIConfig):# GitHub Copilot API now supports system prompts for all models (Claude, GPT, etc.)# No conversion needed - just return messages as-isreturn messages-+# Default behavior: convert system messages to assistant for compatibilitytransformed_messages = []for message in messages:@@ -65,7 +65,7 @@ class GithubCopilotConfig(OpenAIConfig):transformed_messages.append(transformed_message)else:transformed_messages.append(message)-+return transformed_messagesdef validate_environment(