Jiaxu Liu
|
d8ac212253
|
feat: add GitHub Copilot provider with OAuth auth via gh CLI
Replace GitHub Models (models.github.ai) with GitHub Copilot inference API
(api.individual.githubcopilot.com). Auth uses gh CLI token with required
Copilot headers (Copilot-Integration-Id, X-GitHub-Api-Version).
- Add tradingagents/auth/ module: gh token retrieval, Copilot URL resolution
via GraphQL, Codex OAuth token with auto-refresh
- Add "copilot" provider to OpenAIClient with dynamic base URL and headers
- Add live model listing from Copilot /models endpoint (27 models)
- Add perform_copilot_oauth() with Copilot access verification
- Remove all GitHub Models (models.github.ai) references
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-03-23 13:18:55 +00:00 |