Repository navigation
feat(tui): add capability filter tabs and view-only rows to the model selector - #1166
Merged
Merged
Conversation
… selector - Second tab row (keys 5-8: Any/Vision/Audio/Video), ANDed with the pricing tabs; vision matches image input, audio/video match either side - Non-chat models (STT/TTS/image-gen/video) are now listed as view-only rows instead of being hidden; selecting one shows a notice - Subscription tab now follows the gateway-reported pricing.subscription flag; the hardcoded knownProModels set is deleted - Restyle the selector chrome with lipgloss v2 (highlighted active tabs, styled title, full-width separators)
Closed
4 tasks
Contributor
|
🎉 This PR is included in version 0.189.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Problem
The
/modelselector only filtered by pricing (All/Free/Pay-as-you-go/Subscription), the Subscription tab was nearly empty for Ollama Cloud, and non-chat models were invisible.pricing.subscriptionflag per model, but the CLI dropped it at ingest and fell back to a 2-entry hardcodedknownProModelsmap, so subscription-gated models landed under Free. (The remaining gap — mostollama_cloud/*models having no pricing entry at all — is a gateway data issue: [BUG] Ollama Cloud models missing subscription pricing metadata inference-gateway#583.)/chat/completions(STT, TTS, image-gen, video) were filtered out of the list entirely, so there was no way to see what the gateway offers.Changes
5-8: Any / Vision / Audio / Video) under the pricing tabs, ANDed with them. Vision = image input; audio/video match either side, so STT and TTS models land under Audio. Digits typed in search mode still go to the query.(…, view-only)suffix; pressing Enter on one shows a notice ("does not support chat and cannot be selected") instead of selecting. The chat-selectable set (ListModels, validation, autocomplete) is unchanged.parseGatewayPricingnow carriespricing.subscriptionthrough,RequiresProreads it (custom prices still win), andknownProModelsis deleted.audio/videotokens (e.g.glm-5.3-flash (1M, vision, video)).Tests
parseGatewayPricingsubscription parsing;RequiresProvia gateway flag with custom-price override precedence.SupportsAudio/SupportsVideo/ModalitiesLabel/IsNonChatModel/NonChatModelstable-driven cases.task precommit:runandgo test ./...pass.Docs follow-up
A
[DOCS]ticket forinference-gateway/docsis drafted (cli.md model selector section: capability tabs 5-8, view-only rows, subscription flag source) — to be filed alongside this PR.