Files
magpie/docs
yetone eee8ea027b docs: why magpie writes OpenCode's provider, not 2.x's providers
chenxiang0010 (Discord #general) asked why opencode.json still gets
`provider` rather than OpenCode 2's `providers`. Nothing changes in
code: `provider` is the one key both OpenCode lines read.

- OpenCode 2.2.0 migrates `provider` in memory (migrateProviders in
  packages/core/src/config/normalize.ts) and its "Migrate from V1"
  page says the V1 format stays supported and converting is optional.
- OpenCode 1.19.5 (npm latest) ignores `providers` with a warning
  (ConfigV2Compat.lower, packages/opencode/src/config/v2-compat.ts),
  and both read the same opencode.json.

Run on mote in a sandbox HOME against a fake server: @opencode/cli
2.2.0 listed magpie/gpt-5.5 from magpie's `provider` entry and sent
`#high-fast` as reasoning_effort high + service_tier priority;
opencode-ai 1.19.5 used the same file; 1.19.5 with the entry moved
under native `providers` listed no magpie model and its run errored.
Not tried: Windows/Linux OpenCode builds. Docs only, no tests run.
2026-10-29 09:24:10 +08:00
..