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 API base url for Github Copilot provider (#12418)
Joel Martin559d06a55cd2
diff --git a/litellm/llms/github_copilot/chat/transformation.py b/litellm/llms/github_copilot/chat/transformation.pyindex 395eb81c5ba..b104749e1ce 100644--- a/litellm/llms/github_copilot/chat/transformation.py+++ b/litellm/llms/github_copilot/chat/transformation.py@@ -8,7 +8,7 @@ from ..common_utils import GetAPIKeyErrorclass GithubCopilotConfig(OpenAIConfig):- GITHUB_COPILOT_API_BASE = "https://api.github.com/copilot/v1"+ GITHUB_COPILOT_API_BASE = "https://api.githubcopilot.com/"def __init__(self,api_key: Optional[str] = None,diff --git a/tests/test_litellm/llms/github_copilot/test_github_copilot_transformation.py b/tests/test_litellm/llms/github_copilot/test_github_copilot_transformation.pyindex 0e5a149f042..7f61248c09d 100644--- a/tests/test_litellm/llms/github_copilot/test_github_copilot_transformation.py+++ b/tests/test_litellm/llms/github_copilot/test_github_copilot_transformation.py@@ -54,7 +54,7 @@ def test_github_copilot_config_get_openai_compatible_provider_info():custom_llm_provider="github_copilot",)- assert api_base == "https://api.github.com/copilot/v1"+ assert api_base == "https://api.githubcopilot.com/"assert dynamic_api_key == mock_api_keyassert custom_llm_provider == "github_copilot"