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): simplify _get_github_headers return type annotation

Ishaan Jaffer3aa63d524ec7
diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py
index 85c22516f95..7978ee02a67 100644
--- a/litellm/llms/github_copilot/authenticator.py
+++ b/litellm/llms/github_copilot/authenticator.py
@@ -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[str, str]:
+ def _get_github_headers(self, access_token: Optional[str] = None) -> dict:
"""
Generate standard GitHub headers for API requests.