From 0a50065d840adead92a3a7ab3256fe7c97e3f4cc Mon Sep 17 00:00:00 2001 From: Alexander Davydov Date: Wed, 18 Mar 2026 14:12:14 +0300 Subject: [PATCH] Onboarding: keep GigaChat text-only for now --- src/commands/onboard-auth.config-core.gigachat.test.ts | 8 ++++---- src/commands/onboard-auth.models.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/onboard-auth.config-core.gigachat.test.ts b/src/commands/onboard-auth.config-core.gigachat.test.ts index 65d7e5caf65..2fd10b84c68 100644 --- a/src/commands/onboard-auth.config-core.gigachat.test.ts +++ b/src/commands/onboard-auth.config-core.gigachat.test.ts @@ -16,13 +16,13 @@ const emptyCfg: OpenClawConfig = {}; describe("GigaChat provider config", () => { describe("buildGigachatModelDefinition", () => { - it("marks GigaChat 2 Max as image-capable", () => { + it("keeps GigaChat 2 Max text-only until multimodal support lands", () => { const model = buildGigachatModelDefinition(); expect(model.id).toBe(GIGACHAT_DEFAULT_MODEL_ID); expect(model.name).toBe("GigaChat 2 Max"); expect(model.reasoning).toBe(false); - expect(model.input).toEqual(["text", "image"]); + expect(model.input).toEqual(["text"]); expect(model.contextWindow).toBe(GIGACHAT_DEFAULT_CONTEXT_WINDOW); expect(model.maxTokens).toBe(GIGACHAT_DEFAULT_MAX_TOKENS); expect(model.cost).toEqual(GIGACHAT_DEFAULT_COST); @@ -30,14 +30,14 @@ describe("GigaChat provider config", () => { }); describe("applyGigachatProviderConfig", () => { - it("registers the image-capable default model", () => { + it("registers the text-only default model", () => { const result = applyGigachatProviderConfig(emptyCfg); const provider = result.models?.providers?.gigachat; const model = provider?.models?.find((entry) => entry.id === GIGACHAT_DEFAULT_MODEL_ID); expect(provider?.baseUrl).toBe(GIGACHAT_BASE_URL); expect(provider?.api).toBe("openai-completions"); - expect(model?.input).toEqual(["text", "image"]); + expect(model?.input).toEqual(["text"]); }); it("sets the default GigaChat alias without changing the selected primary model", () => { diff --git a/src/commands/onboard-auth.models.ts b/src/commands/onboard-auth.models.ts index d9169640686..882c6faf7eb 100644 --- a/src/commands/onboard-auth.models.ts +++ b/src/commands/onboard-auth.models.ts @@ -234,7 +234,7 @@ export function buildGigachatModelDefinition(): ModelDefinitionConfig { id: GIGACHAT_DEFAULT_MODEL_ID, name: "GigaChat 2 Max", reasoning: false, - input: ["text", "image"], + input: ["text"], cost: GIGACHAT_DEFAULT_COST, contextWindow: GIGACHAT_DEFAULT_CONTEXT_WINDOW, maxTokens: GIGACHAT_DEFAULT_MAX_TOKENS,