Skip to content

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]

style(github_copilot): revert authenticator.py to origin/main formatting

Ishaan Jaffer786749775114
diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py
index 6c646c4f755..85c22516f95 100644
--- a/litellm/llms/github_copilot/authenticator.py
+++ b/litellm/llms/github_copilot/authenticator.py
@@ -26,7 +26,7 @@ GITHUB_API_KEY_URL = "https://api.github.com/copilot_internal/v2/token"
class Authenticator:
def __init__(self) -> None:
- """GitHub Copilot authenticator - sets up configurable token file paths."""
+ """Initialize the GitHub Copilot authenticator with configurable token paths."""
# Token storage paths
self.token_dir = os.getenv(
"GITHUB_COPILOT_TOKEN_DIR",
@@ -194,7 +194,7 @@ class Authenticator:
if not os.path.exists(self.token_dir):
os.makedirs(self.token_dir, exist_ok=True)
- def _get_github_headers(self, access_token: Optional[str] = None) -> dict:
+ def _get_github_headers(self, access_token: Optional[str] = None) -> Dict[str, str]:
"""
Generate standard GitHub headers for API requests.