forked from sst/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: dual model support and sorting by release date #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aryasaatvik
merged 16 commits into
AryaLabsHQ:dev
from
aryasaatvik:feat/lightweight-model-configuration
Jun 27, 2025
Merged
feat: dual model support and sorting by release date #1
aryasaatvik
merged 16 commits into
AryaLabsHQ:dev
from
aryasaatvik:feat/lightweight-model-configuration
Jun 27, 2025
Conversation
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
…etter provider handling
- Add turbo_cost_threshold config option (default: 4) - Replace hardcoded turbo model list with dynamic cost-based detection - Update UI to show ⚡ emoji based on configurable threshold - Add isTurboModel() helper function to check model costs - Standardize terminology from 'lightweight' to 'turbo' throughout
… legend - Add capability indicators for turbo, reasoning, and tools in model display - Update rendering logic to right-align capabilities with model name - Introduce emoji legend for quick reference in scroll indicators
…rboModel function
…r enhanced tracking
…h sort mode cycling
aryasaatvik
added a commit
that referenced
this pull request
Jun 27, 2025
## Summary This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality. ### Key Changes #### Dual Model Support - Added `turbo_model` and `turbo_cost_threshold` config options - New dual-pane model selector (Tab to switch panes) - Visual indicators: ⚡ (turbo), 🧠 (reasoning), 🔧 (tools) - Smart turbo model selection with fallback logic - Fixed Anthropic auth showing incorrect turbo status #### Model Sorting - Added `release_date` and `last_updated` fields to model schema - Press 'S' to cycle through sort modes: Name, Last Updated, Release Date - Stable multi-level sorting with consistent ordering - Helps discover newest models and track updates ### Impact Enables cost optimization for PRs sst#269 (status verbs) and sst#275 (window titles) to use configured turbo models instead of hardcoded ones. ### Demo https://github.com/user-attachments/assets/d076e840-d790-4e23-8cf7-a179282d1f0b
aryasaatvik
added a commit
that referenced
this pull request
Jun 27, 2025
## Summary This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality. ### Key Changes #### Dual Model Support - Added `turbo_model` and `turbo_cost_threshold` config options - New dual-pane model selector (Tab to switch panes) - Visual indicators: ⚡ (turbo), 🧠 (reasoning), 🔧 (tools) - Smart turbo model selection with fallback logic - Fixed Anthropic auth showing incorrect turbo status #### Model Sorting - Added `release_date` and `last_updated` fields to model schema - Press 'S' to cycle through sort modes: Name, Last Updated, Release Date - Stable multi-level sorting with consistent ordering - Helps discover newest models and track updates ### Impact Enables cost optimization for PRs sst#269 (status verbs) and sst#275 (window titles) to use configured turbo models instead of hardcoded ones. ### Demo https://github.com/user-attachments/assets/d076e840-d790-4e23-8cf7-a179282d1f0b
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
This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality.
Key Changes
Dual Model Support
turbo_model
andturbo_cost_threshold
config optionsModel Sorting
release_date
andlast_updated
fields to model schemaImpact
Enables cost optimization for PRs sst#269 (status verbs) and sst#275 (window titles) to use configured turbo models instead of hardcoded ones.
Demo
CleanShot.2025-06-25.at.03.11.30.mp4