From 60613a8610160575c654070eb4581855dc25ff64 Mon Sep 17 00:00:00 2001 From: yyouretoast Date: Wed, 26 Aug 2026 15:10:52 +0400 Subject: [PATCH] style(github_copilot): fix parameter rebinding in embedding transformation --- litellm/llms/github_copilot/embedding/transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/llms/github_copilot/embedding/transformation.py b/litellm/llms/github_copilot/embedding/transformation.py index 15186a9d384..6da1a46d74a 100644 --- a/litellm/llms/github_copilot/embedding/transformation.py +++ b/litellm/llms/github_copilot/embedding/transformation.py @@ -60,9 +60,9 @@ class GithubCopilotEmbeddingConfig(BaseEmbeddingConfig): """ try: # Get GitHub Copilot API key via OAuth - api_key = self.authenticator.get_api_key(access_token=api_key) + copilot_api_key: Final = self.authenticator.get_api_key(access_token=api_key) - if not api_key: + if not copilot_api_key: raise AuthenticationError( model=model, llm_provider="github_copilot", @@ -70,7 +70,7 @@ class GithubCopilotEmbeddingConfig(BaseEmbeddingConfig): ) # Get default headers - default_headers: Final = get_copilot_default_headers(api_key) + default_headers: Final = get_copilot_default_headers(copilot_api_key) # Merge with existing headers (user's extra_headers take priority) merged_headers: Final = {**default_headers, **headers}