Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

feat: dual model support and sorting by release date#279

Closed
aryasaatvik wants to merge 16 commits intoanomalyco:devanomalyco/opencode:devfrom
aryasaatvik:feat/lightweight-model-configurationaryasaatvik/opencode:feat/lightweight-model-configurationCopy head branch name to clipboard
Closed

feat: dual model support and sorting by release date#279
aryasaatvik wants to merge 16 commits intoanomalyco:devanomalyco/opencode:devfrom
aryasaatvik:feat/lightweight-model-configurationaryasaatvik/opencode:feat/lightweight-model-configurationCopy head branch name to clipboard

Conversation

@aryasaatvik
Copy link
Contributor

@aryasaatvik aryasaatvik commented Jun 20, 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 #269 (status verbs) and #275 (window titles) to use configured turbo models instead of hardcoded ones.

Demo

CleanShot.2025-06-25.at.03.11.30.mp4

@aryasaatvik aryasaatvik force-pushed the feat/lightweight-model-configuration branch from 2ca1cae to 4e500a3 Compare June 21, 2025 10:05
@aryasaatvik aryasaatvik marked this pull request as ready for review June 21, 2025 12:15
@aryasaatvik aryasaatvik changed the title feat: lightweight model configuration feat: dual model support with lightweight model configuration for cost optimization Jun 21, 2025
@aryasaatvik aryasaatvik changed the title feat: dual model support with lightweight model configuration for cost optimization feat: dual model support for cost optimization Jun 21, 2025
@aryasaatvik aryasaatvik force-pushed the feat/lightweight-model-configuration branch from f8f7ba6 to 053ba20 Compare June 24, 2025 19:23
- 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
@aryasaatvik
Copy link
Contributor Author

@thdxr can you take a look? this would unblock #275

@aryasaatvik aryasaatvik changed the title feat: dual model support for cost optimization feat: dual model support and sorting by release date Jun 24, 2025
m-pa pushed a commit to m-pa/opencode that referenced this pull request Dec 4, 2025
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.