Repository navigation
feat(provider): pick slugs from large gateway /models catalogs - #85
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenRouter
GET /modelsreturns hundreds of slugs.--fetch-models/ TUIfused to reject the whole list (gateway listed 417 models; pass --model), so the fetched catalog was never shown for picking.provider add --fetch-models --model …andprovider fetch-models <alias> --model …require those slugs to exist on the gateway.fon a large catalog opens a picker:/filters,spacetoggles, Enter applies, Esc cancels. Saved ids that are still listed start checked.Codex
/modelstill lists only the saved provider slugs.Test plan
cargo test --lib fetch_/picker_/provider_fetch_modelscargo clippy --all-targets -- -D warningsfetch-modelswithout--modelrefuses 417 chat slugs with examples;--modelkeeps only those slugsfopens Pick models (417). Unchecked paid nano/r1. Checked 8:freeslugs (4 text LLM + 4 multimodal: image/audio/video). Enter apply,ssave. Providers listliquid/lfm-2.5-2.6b:free +7.