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
Merge branch 'main' into ttl-prompt-caching-bedrock
Lucky-Lodhi2004e4b45dc32e9a
diff --cc litellm/llms/github_copilot/chat/transformation.pyindex 8b6160f7574,945b7ebf7ff..506798bb8d6--- a/litellm/llms/github_copilot/chat/transformation.py+++ b/litellm/llms/github_copilot/chat/transformation.py@@@ -1,4 -1,4 +1,8 @@@++<<<<<<< ttl-prompt-caching-bedrock+from typing import List, Optional, Tuple++=======+ from typing import Any, List, Optional, Tuple, cast++>>>>>>> mainfrom litellm.exceptions import AuthenticationErrorfrom litellm.llms.openai.openai import OpenAIConfig@@@ -43,14 -49,24 +51,35 @@@ class GithubCopilotConfig(OpenAIConfig)):import litellm++<<<<<<< ttl-prompt-caching-bedrock+ disable_copilot_system_to_assistant = (+ litellm.disable_copilot_system_to_assistant+ )+ if not disable_copilot_system_to_assistant:+ for message in messages:+ if "role" in message and message["role"] == "system":+ message["role"] = "assistant"+ return messages++=======+ # Check if system-to-assistant conversion is disabled+ if litellm.disable_copilot_system_to_assistant:+ # GitHub Copilot API now supports system prompts for all models (Claude, GPT, etc.)+ # No conversion needed - just return messages as-is+ return messages++ # Default behavior: convert system messages to assistant for compatibility+ transformed_messages = []+ for message in messages:+ if message.get("role") == "system":+ # Convert system message to assistant message+ transformed_message = message.copy()+ transformed_message["role"] = "assistant"+ transformed_messages.append(transformed_message)+ else:+ transformed_messages.append(message)++ return transformed_messages++>>>>>>> maindef validate_environment(self,