Offer multiple Anthropic models in the composer model picker#170
Open
GrigoryPervakov wants to merge 1 commit into
Open
Offer multiple Anthropic models in the composer model picker#170GrigoryPervakov wants to merge 1 commit into
GrigoryPervakov wants to merge 1 commit into
Conversation
The picker (added in #147) only exposed the single configured Anthropic model plus local Ollama models, so there was no way to switch, e.g., Opus 4.8 to Fable 5 for a message. Add agent.selectable_models: extra Anthropic model ids that GET /api/models emits alongside the default (de-duplicated, order preserved). The existing composer picker already renders 2+ models and the engine already switches model per turn, so no session state, migration, or new UI is needed. Enabled with [claude-fable-5] in config.example.yaml. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
config.agent.model) plus any local Ollama models, so there was no way to switch a message to a different Anthropic model (e.g. bump one message to Claude Fable 5).agent.selectable_models— extra Anthropic chat models thatGET /api/modelsemits alongside the default (de-duplicated, order preserved).resume), so no session state, migration, or new UI is required.config.example.yamlships[claude-fable-5].Why
Opus 4.8 is the default; Fable 5 is Anthropic's most capable model but ~2× the cost, so it's a per-message opt-in via the picker rather than a global default.
Test plan
selectable_models: [claude-fable-5], the composer picker shows Opus 4.8 + Fable 5 (even without Ollama)selectable_models→ picker unchanged (default-only, hidden unless Ollama present)pytest tests/test_engine.pygreen;npm run buildclean🤖 Generated with Claude Code