diff --git a/litellm/llms/github_copilot/messages/transformation.py b/litellm/llms/github_copilot/messages/transformation.py index 17b72a52b49..036544a0cd9 100644 --- a/litellm/llms/github_copilot/messages/transformation.py +++ b/litellm/llms/github_copilot/messages/transformation.py @@ -87,9 +87,7 @@ class GithubCopilotAnthropicMessagesConfig(AnthropicMessagesConfig): The caller-supplied ``api_base`` is intentionally ignored to avoid leaking the Copilot bearer token to a caller-controlled URL. """ - resolved = ( - self.authenticator.get_api_base() or DEFAULT_GITHUB_COPILOT_API_BASE - ) + resolved = self.authenticator.get_api_base() or DEFAULT_GITHUB_COPILOT_API_BASE if not resolved.endswith("/v1/messages"): resolved = f"{resolved}/v1/messages" return resolved