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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| codex_token.py | ||
| github_token.py | ||