9router/src/app/api/models
caiqinzhou 1980178d02 feat(github): resolve Copilot model catalog from upstream
Fetch the live model list from the Copilot /models endpoint and surface
it through /v1/models, replacing the hardcoded github entry so newly
shipped models appear without a code change. Catalog is cached per
credential and the Copilot token is refreshed on 401/403 before retry.

Also raise the connectivity-test budget to max_tokens:16, since Claude on
Copilot emits no choices at max_tokens:1 and produced a false negative.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 10:38:09 +07:00
..
alias fix: custom model compatibility with antigravity/mitm (PR #250) 2026-03-06 16:44:16 +07:00
availability fix(ui): restore provider assets and model availability endpoint (#367) 2026-03-23 09:16:10 +07:00
custom feat: add OpenCode Go provider and support for custom models 2026-04-22 14:16:21 +07:00
disabled feat: add STT support, Gemini TTS, and expand usage tracking 2026-05-05 10:32:59 +07:00
test feat(github): resolve Copilot model catalog from upstream 2026-06-26 10:38:09 +07:00
route.js Refactor 2026-06-15 18:18:04 +07:00