Repository navigation
feat: runtime setup is a provider, key, model pick - #281
Merged
Merged
Conversation
- provider table: OpenAI, Anthropic and Google Gemini rows beside DeepSeek and OpenRouter, and Other... (any OpenAI-compatible base URL + key; an Anthropic-compatible one for Claude Code); per-row key auth (bearer or a header), required headers, wrong-key statuses (Gemini: 400) and a model list call, each cited from the provider's API docs - after a key passes its check the node loads that provider's model list with the key; the ready card offers it (suggested model first, eight a page) and a pick becomes the runtime's default model on that provider (state.json models, POST /api/runtimes/<name>/model); a failed list keeps the row's default - OpenCode and Pi configs carry the picked model (declared under its provider for OpenCode) and Other as a custom provider; Claude Code takes a picked model on every tier - /runtimes lists every provider, none first, with Other... last - docs/user: providers, Other, the model pick Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
popodidi
added a commit
that referenced
this pull request
Dec 2, 2026
Owner pick A (tn-cos #6541/#6548): a runtime stores no model of its own. Reverts the model pick of #281, keeping the provider -> key flow and rows. - remove the ready-card model pick (rtmodel/rtmpage buttons; old ones now answer with the retired toast), POST /api/runtimes/<name>/model, Axe::runtime_model, the node's runtime_model job, Registry::set_model, state.json `models` (an old file still loads; the field is dropped) and the provider model-list call (list_models, parse_models, choices) - a rule naming no model runs the provider row's default_model; the ready card says the runtime is ready with its provider and to ask the bot for another model; Other... has no default, so its card asks for one - before a run whose rule names a model, the runtime's OpenCode/Pi config declares it under its provider (Runtime::write_config_for): OpenCode refuses an undeclared model its catalog lacks, and Other's models are known only from the rule - runtime report: providers[] back to id and state - docs/user: runtimes concept and Telegram guide Co-authored-by: haojr <changhao+haojr@haostudio.cc> Co-authored-by: Claude Opus 5.5 <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.
Task 2438 (owner msg #6509, Go #6511): setting up an API-key runtime is a generic provider -> key -> model pick; no provider is first-class.
What changes
Provider table (
crates/axe-core/src/provider.rs)openai,anthropicandgoogle(Gemini), for OpenCode and Pi.otherrow ("Other…"):x-goog-api-key)anthropic-version)Model pick
state.jsonmodelsAxe::runtime_model/POST /api/runtimes/<name>/model, node jobruntime_modeldefault_modeland the card says so.Configs
opencode.jsondeclares each held model under its provider. 2.4.3 refuses a model its catalog does not know ("Model unavailable"); this was verified, and so was the fix.@ai-sdk/openai-compatibleprovider withenv: ["OTHER_API_KEY"].agent/models.json(openai-completions,$OTHER_API_KEY).Compatibility
state.jsonfield with a serde default.Behaviour changes (owner #5615/#5618)
/runtimes:axe runtimes login --help/axe rule add --helplist the new provider ids (generated from the table).GET /api/runtimes) addsproviders[].model, and there is a new routePOST /api/runtimes/<name>/model.concepts/runtimes.mdandguides/runtimes-from-telegram.md.Tests
crates/axe/tests/telegram.rs):/runtimes→ provider → key → model list → pick updatesopencode.json,state.jsonand the runtime report🤖 Generated with Claude Code