You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(provider): add --model free to pick a random zero-cost opencode model
Resolves --model free to a randomly-chosen zero-cost opencode model per
invocation. Filter is structural (providerID === opencode and every cost
dim === 0), not name-based, so the resolver picks up new catalog members
automatically as models.dev rotates the OpenCode Zen tier.
Provider.resolveSelection takes an explicit InstanceContext arg because
Service.list() needs InstanceRef in the Effect fiber; plain-async CLI
callers (run and TUI) have no current fiber. bootstrap() forwards its
loaded ctx to its callback so the TUI can thread it through.
Resolution runs on both interactive/--mini and non-interactive paths.
--attach + --model free fails fast with a clean CLI error since the local
catalog isn't loaded in attach mode. Removes the --variant flag and its
threading: the free-model catalog rotates fast enough that variant
pinning doesn't make sense.
`No free opencode models found. The opencode provider must be configured (set OPENCODE_API_KEY) and at least one model in its catalog must have all costs set to 0.`,
0 commit comments