Replies: 2 comments
|
Also hitting this from the product side. PawWork (a DSH-based desktop app) ships OpenCode Zen's free models and had to adopt the documented workaround — the free set split across two route keys ( Two data points that may help scope the fix:
Cost of the two-route workaround for the record: two settings cards for one logical provider, and the declared route carries the "Custom" tag because its key isn't a catalog id. Happy to consolidate wire-level evidence if useful. |
|
Verified all claims against 1. Confirmed: the two missing pieces are exactly (a) + (b)
2. Confirmed: pi-ai already supports the map form. 3. Correction 1 — the OP's "workaround" is inert at alpha.4. Writing 4. Correction 2 — the "stale snapshot" is a pi-ai version pin, not a harness data bug. The built-in catalog is 5. Scope precision — mixed-protocol catalog routes already work. A route whose key names an installed provider, with no Exact patch surface (each change is small and contained):
One design note: with (a), the settings/directory surfaces that edit |
Uh oh!
There was an error while loading. Please reload this page.
Description
Some models in custom providers default to
openai-completions(Chat Completions) only, without Anthropic-compatible (anthropic-messages) and Response (openai-responses) endpoints. When a user configures a custom OpenCode Go provider,GET {baseURL}/modelsreturns the full catalog, but DSH's discovery and routing filter by the provider's default protocol, so models served viaanthropic-messages(e.g.,qwen3.8-max/qwen3.8-flash/minimax-m2.5) andopenai-responses(e.g.,gpt-5.6-luna/muse-spark-1.2-contributor/grok-4.6) become undiscoverable, unaddable, and their reasoning toggle is unavailable.Steps to Reproduce
~/.dsh/settings.yaml:apiare returned; models on other protocols are missingExpected Behavior
apifield (anthropic-messages/openai-completions/openai-responses) whenapiis not explicitly set at provider levelopencode-gofrozen snapshot (pi-ai/dist/providers/data/opencode-go.json, 16 models) should be made dynamic or kept in sync to include new models likegpt-5.6-lunaapiinstead of filtering solely by the provider-level default protocol).Actual Behavior
opencode-gosnapshot is stale (16 models, missing new ones) and the liveGET /v1/modelsdynamic path is not reusedWorkaround
Manually list
modelswith explicitapiper model:Environment
DSH
0.1.1-rc.2/pi-ai0.x / Windows 10 /https://opencode.ai/zen/go/v1verifiedGET /v1/modelsreturns 32 models (including the missing ones) andPOST /v1/responsesreturns 200All reactions