fix(opencode-go): align Kimi input with runtime · openclaw/openclaw@715dc71
steipete
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -152,7 +152,7 @@ describe("opencode-go provider plugin", () => {
|
152 | 152 | const kimiCode = requireMapEntry(models, "kimi-k2.7-code"); |
153 | 153 | expect(kimiCode.api).toBe("openai-completions"); |
154 | 154 | expect(kimiCode.baseUrl).toBe("https://opencode.ai/zen/go/v1"); |
155 | | -expect(kimiCode.input).toEqual(["text", "image", "video"]); |
| 155 | +expect(kimiCode.input).toEqual(["text", "image"]); |
156 | 156 | expect(kimiCode.contextWindow).toBe(262_144); |
157 | 157 | expect(kimiCode.maxTokens).toBe(262_144); |
158 | 158 | expect(kimiCode.cost).toEqual({ |
@@ -478,7 +478,7 @@ describe("opencode-go provider plugin", () => {
|
478 | 478 | api: "openai-completions", |
479 | 479 | baseUrl: "https://opencode.ai/zen/go/v1", |
480 | 480 | reasoning: true, |
481 | | -input: ["text", "image", "video"], |
| 481 | +input: ["text", "image"], |
482 | 482 | cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, |
483 | 483 | contextWindow: 262_144, |
484 | 484 | maxTokens: 262_144, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ type OpencodeGoModelDefinition = ModelDefinitionConfig & {
|
28 | 28 | provider: typeof PROVIDER_ID; |
29 | 29 | api: NonNullable<ModelDefinitionConfig["api"]>; |
30 | 30 | baseUrl: string; |
31 | | -input: Array<"text" | "image" | "video">; |
| 31 | +input: Array<"text" | "image">; |
32 | 32 | }; |
33 | 33 | |
34 | 34 | const OPENCODE_GO_MODELS = ( |
@@ -186,7 +186,7 @@ const OPENCODE_GO_MODELS = (
|
186 | 186 | provider: PROVIDER_ID, |
187 | 187 | baseUrl: OPENCODE_GO_OPENAI_BASE_URL, |
188 | 188 | reasoning: true, |
189 | | -input: ["text", "image", "video"], |
| 189 | +input: ["text", "image"], |
190 | 190 | cost: { |
191 | 191 | input: 0.95, |
192 | 192 | output: 4, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。