Expand description
GitHub Copilot API client for LLMG
Implements the Provider trait for GitHub Copilot Chat API using OAuth device flow.
Authentication Flow:
- Get device code from GitHub
- User visits verification URL and enters code
- Poll for access token
- Exchange access token for Copilot API key
Environment variables:
- GITHUB_COPILOT_ACCESS_TOKEN: Cached OAuth access token
- GITHUB_COPILOT_API_KEY: Cached Copilot API key
- GITHUB_COPILOT_TOKEN_DIR: Directory to store tokens (default: ~/.config/llmg/github_copilot)
Structsยง
- GitHub
Copilot Client - GitHub Copilot API client