Skip to content

feat(provider): pick slugs from large gateway /models catalogs - #85

Merged
cursor[bot] merged 1 commit into
devfrom
cursor/pick-gateway-models-dd00
Aug 27, 2026
Merged

cursor[bot] merged 1 commit into
devfrom
cursor/pick-gateway-models-dd00

Conversation

@xjoker

@xjoker xjoker commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

OpenRouter GET /models returns hundreds of slugs. --fetch-models / TUI f used to reject the whole list (gateway listed 417 models; pass --model), so the fetched catalog was never shown for picking.

  • Small catalogs (≤48 chat slugs) still import wholesale, minus embedding/reranker.
  • Large catalogs keep only explicit picks. provider add --fetch-models --model … and provider fetch-models <alias> --model … require those slugs to exist on the gateway.
  • TUI f on a large catalog opens a picker: / filters, space toggles, Enter applies, Esc cancels. Saved ids that are still listed start checked.

Codex /model still lists only the saved provider slugs.

Test plan

  • cargo test --lib fetch_ / picker_ / provider_fetch_models
  • cargo clippy --all-targets -- -D warnings
  • CLI: OpenRouter fetch-models without --model refuses 417 chat slugs with examples; --model keeps only those slugs
  • TUI on live OpenRouter: f opens Pick models (417). Unchecked paid nano/r1. Checked 8 :free slugs (4 text LLM + 4 multimodal: image/audio/video). Enter apply, s save. Providers list liquid/lfm-2.5-2.6b:free +7.
Open in Web Open in Cursor 

OpenRouter-sized lists are not imported wholesale. --fetch-models
with --model, and fetch-models --model, keep only those chat slugs.
TUI f opens a filterable picker so the fetched list can be checked
instead of rejected.

Co-authored-by: lolitaupdate <[email protected]>
@xjoker
xjoker marked this pull request as ready for review August 27, 2026 09:33
@cursor
cursor Bot merged commit 437b0ee into dev Aug 27, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/pick-gateway-models-dd00 branch September 9, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants