Repository navigation
Conversation
There was a problem hiding this comment.
The change is sound: it ships the speeds behavior to releases as described.
I decoded the bundled models.dev snapshot with the defaults a release build uses, in both checkouts. On the base, no models are marked as speeds and OpenCode Zen has no Fast/Flex/Ultrafast entries. With this PR, 592 tier models are marked as speeds of their base model, and Zen has its -fast/-flex/-ultrafast speeds back. models.test.ts passes (31 tests) and tsc on packages/core reports no errors. I couldn't drive the TUI here (the CLI server fails to start on a missing react/jsx-dev-runtime), so I have no screenshots.
One side effect, and a good one: openai-subscription-models.ts now reads the same cached catalog as the models.dev plugin. On dev, while the flag was on, the two read separate copies.
Public API: removes the experimental.model_speeds config key from the config schema, the OpenAPI Config.Info, the client types and the cli-rs types. It's backwards compatible: configs that still set the key load fine and it is ignored. For release users, -fast/-flex models now show as speeds of their base model instead of separate picker entries, and those model IDs still resolve.
No blocking concerns.
Related: #64968
Ships the model speeds from #65749 to everyone by deleting the
model_speedsflag and the code that reads it. Releases now get the same behavior dev builds have had since #65749:/speedin the TUI and the speed dropdown in desktop.gpt-5.5-fast), so typing or sending a-fastmodel ID keeps working everywhere.What changes for release users: OpenCode Zen models get Fast, Flex and Ultrafast again (their models.dev modes were removed in favor of the tier lists), and the separate
-fastentries in the picker become a speed of their model.experimental.model_speedsin a config is now ignored, as with any removed flag.Model.Info.experimental.speedstays experimental.How I verified it
bun run checkpasses. Tests pass intui(1735),app(2876) andcore(7961), apart from the three shell tests incorethat fail on my machine's bash ondevtoo.packages/protocol/openapi.json, the client types and the cli-rs config types; the only change in each is the removed flag. I left out unrelated doc-comment drift the cli-rs generator also produced.Added by the opencode bot (AI-generated).
Related: #64968
Public API: removes the experimental.model_speeds config flag (backwards compatible: the key is now ignored)