Skip to content

Commit e62d07a

Browse files
committed
fix(opencode-go): correct current model pricing
1 parent d375cf8 commit e62d07a

3 files changed

Lines changed: 52 additions & 15 deletions

File tree

‎packages/types/src/__tests__/opencode-go.test.ts‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe("opencode-go registry", () => {
3333
"mimo-v2.5-pro",
3434
"deepseek-v4-pro",
3535
"deepseek-v4-flash",
36+
"omen-alpha",
3637
]
3738
const responsesFormatModels = [
3839
"gpt-5.6-luna",
@@ -205,9 +206,9 @@ describe("opencode-go registry", () => {
205206
supportsPromptCache: true,
206207
supportsMaxTokens: true,
207208
supportsReasoningEffort: ["low", "high", "max"],
208-
inputPrice: 0.075,
209-
outputPrice: 0.25,
210-
cacheReadsPrice: 0.015,
209+
inputPrice: 0.15,
210+
outputPrice: 0.5,
211+
cacheReadsPrice: 0.03,
211212
},
212213
},
213214
{
@@ -325,11 +326,28 @@ describe("opencode-go registry", () => {
325326
contextWindow: 256_000,
326327
supportsImages: false,
327328
supportsReasoningEffort: ["disable", "low", "high"],
328-
inputPrice: 0.0175,
329-
outputPrice: 0.0725,
330-
cacheReadsPrice: 0.004375,
329+
inputPrice: 0.14,
330+
outputPrice: 0.58,
331+
cacheReadsPrice: 0.035,
331332
},
332333
})),
334+
{
335+
id: "omen-alpha",
336+
expected: {
337+
maxTokens: 128_000,
338+
contextWindow: 500_000,
339+
supportsImages: true,
340+
supportsPromptCache: true,
341+
supportsMaxTokens: true,
342+
supportsReasoningEffort: ["low", "high"],
343+
reasoningEffort: "high",
344+
preserveReasoning: true,
345+
supportsTemperature: true,
346+
inputPrice: 0.2,
347+
outputPrice: 0.66,
348+
cacheReadsPrice: 0.04,
349+
},
350+
},
333351
{
334352
id: "grok-4.5",
335353
expected: {

‎packages/types/src/providers/opencode-go.ts‎

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ export const opencodeGoModels: Record<string, ModelInfo> = {
111111
supportsReasoningEffort: ["low", "high", "max"],
112112
reasoningEffort: "max",
113113
preserveReasoning: true,
114-
inputPrice: 0.075,
115-
outputPrice: 0.25,
116-
cacheReadsPrice: 0.015,
114+
inputPrice: 0.15,
115+
outputPrice: 0.5,
116+
cacheReadsPrice: 0.03,
117117
description:
118118
"GLM-5.3 Flash is Zhipu's fast multimodal coding and agent model with a 1M context window and configurable reasoning effort. Available via the Opencode Go plan.",
119119
},
@@ -506,9 +506,9 @@ export const opencodeGoModels: Record<string, ModelInfo> = {
506506
supportsReasoningEffort: ["disable", "low", "high"],
507507
reasoningEffort: "high",
508508
preserveReasoning: true,
509-
inputPrice: 0.0175,
510-
outputPrice: 0.0725,
511-
cacheReadsPrice: 0.004375,
509+
inputPrice: 0.14,
510+
outputPrice: 0.58,
511+
cacheReadsPrice: 0.035,
512512
description:
513513
"Hunyuan 3 is Tencent's reasoning and coding model with a 256k context window. Available via the Opencode Go plan.",
514514
},
@@ -522,13 +522,31 @@ export const opencodeGoModels: Record<string, ModelInfo> = {
522522
supportsReasoningEffort: ["disable", "low", "high"],
523523
reasoningEffort: "high",
524524
preserveReasoning: true,
525-
inputPrice: 0.0175,
526-
outputPrice: 0.0725,
527-
cacheReadsPrice: 0.004375,
525+
inputPrice: 0.14,
526+
outputPrice: 0.58,
527+
cacheReadsPrice: 0.035,
528528
description:
529529
"Hunyuan 3 Preview is Tencent's preview reasoning and coding model with a 256k context window. Available via the Opencode Go plan.",
530530
},
531531

532+
// --- Omen ---
533+
"omen-alpha": {
534+
maxTokens: 128_000,
535+
contextWindow: 500_000,
536+
supportsImages: true,
537+
supportsPromptCache: true,
538+
supportsMaxTokens: true,
539+
supportsReasoningEffort: ["low", "high"],
540+
reasoningEffort: "high",
541+
preserveReasoning: true,
542+
supportsTemperature: true,
543+
inputPrice: 0.2,
544+
outputPrice: 0.66,
545+
cacheReadsPrice: 0.04,
546+
description:
547+
"Omen Alpha is a multimodal reasoning model for coding workflows. Available via the Opencode Go plan.",
548+
},
549+
532550
// --- OpenAI Responses ---
533551
// Luna is curated here because the Go gateway's model catalogue does not
534552
// currently provide its capability metadata. These values intentionally

‎src/api/providers/fetchers/__tests__/opencode-go.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ describe("Opencode Go Fetchers", () => {
189189
"grok-4.6",
190190
"muse-spark-1.3-contributor",
191191
"muse-spark-1.2-contributor",
192+
"omen-alpha",
192193
]
193194
expect(Object.keys(opencodeGoModels).sort()).toEqual([...modelIds].sort())
194195

0 commit comments

Comments
 (0)