mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 23:22:09 +03:00
⭐5 — Dedupe dos 3 entries byte-idênticos (kimi-k2.7-code, qwen3.5-plus, qwen3.6-plus) entre opencode-zen e opencode-go via OPENCODE_ZEN_GO_SHARED_MODELS (padrão GLM_SHARED_MODELS), frozen e testado por deep-equal. Pure move, sem mudança de comportamento; check:provider-consistency OK (267 entries, 348 providers). TDD 3/3. Follow-up de #11049/#11048. Base-red #9985 inherited.
17 lines
942 B
TypeScript
17 lines
942 B
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 },
|
|
]);
|