mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 09:02:11 +03:00
Validated in a combined 3-PR batch worktree off release/v3.8.51 tip (a sibling PR from the same author, #11495, was held out after an interaction-only typecheck error was isolated to it — reproduced clean without it, see #11495's own comment). - Focused tests: opencode-go-effort-aliases-6922.test.ts, opencode-go-effort-aliases-8353.test.ts, chatcore-upstream-body.test.ts — part of batch's 94/94 node:test run - typecheck:core, file-size, changelog-integrity, complexity, cognitive-complexity — all OK - Full-repo lint: 228 pre-existing dashboard react-hooks/* findings, unrelated to this diff Thanks for tracing this all the way to the wire format — forwarding the aliased id verbatim instead of injecting a field the non-DeepSeek families never had is exactly the right fix.
27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
/**
|
|
* Models declared identically in both the `opencode-zen` and `opencode-go` provider
|
|
* registries (same upstream family, opencode.ai/zen/*). Mirrors the GLM_SHARED_MODELS
|
|
* pattern in glmProvider.ts: one array, spread into each sibling RegistryEntry, so a
|
|
* metadata fix (targetFormat, supportsReasoning, ...) only has to land in one file
|
|
* instead of drifting out of sync across registries.
|
|
*
|
|
* Only entries that are byte-identical across both registries belong here — a model
|
|
* with tier-specific flags (e.g. go's effort variants, or a flag only one tier needs)
|
|
* stays local to that registry's own `models` array.
|
|
*/
|
|
export const OPENCODE_ZEN_GO_SHARED_MODELS = Object.freeze([
|
|
{ id: "kimi-k2.7-code", name: "Kimi K2.7 Code" },
|
|
{ id: "qwen3.5-plus", name: "Qwen3.5 Plus", targetFormat: "claude", supportsVision: false },
|
|
{
|
|
id: "qwen3.6-plus",
|
|
name: "Qwen3.6 Plus",
|
|
targetFormat: "claude",
|
|
supportsVision: false,
|
|
// #10788: effort-tier aliases exist as explicit registry rows; declare the
|
|
// vocabulary on the shared base row so variant synthesis and the sanitizer
|
|
// agree on it for both opencode-go and opencode-zen.
|
|
supportsReasoning: true,
|
|
supportedThinkingEfforts: ["high", "max"],
|
|
},
|
|
]);
|