

























@@ -1707,7 +1707,7 @@ describe("legacy model compat migrate", () => {
17071707},
17081708});
170917091710-expect(res.config?.agents?.defaults?.imageModel).toBe("anthropic/claude-sonnet-4-6");
1710+expect(res.config?.agents?.defaults?.imageModel).toBe("anthropic/claude-haiku-4-5");
17111711expect(res.config?.agents?.defaults?.imageGenerationModel).toEqual({
17121712primary: "github-copilot/claude-sonnet-4.6",
17131713fallbacks: ["github-copilot/gpt-5.4-mini"],
@@ -1751,6 +1751,7 @@ describe("legacy model compat migrate", () => {
17511751});
17521752expect(res.config?.agents?.defaults?.workspace).toBe("/tmp/claude-3-sonnet");
17531753expect(res.config?.agents?.defaults?.models).toEqual({
1754+"anthropic/claude-haiku-4-5": { alias: "haiku" },
17541755"anthropic/claude-sonnet-4-6": { alias: "current-sonnet" },
17551756"github-copilot/claude-opus-4.7": { alias: "copilot-opus" },
17561757"openai/gpt-5.5-pro": { alias: "old-pro" },
@@ -1770,10 +1771,9 @@ describe("legacy model compat migrate", () => {
17701771subagent?: { allowedModels?: string[] };
17711772}
17721773)?.subagent?.allowedModels,
1773-).toEqual(["anthropic/claude-sonnet-4-6", "*"]);
1774+).toEqual(["anthropic/claude-haiku-4-5", "*"]);
17741775expect(res.config?.channels?.modelByChannel?.telegram?.["*"]).toBe("anthropic/claude-opus-4-7");
17751776expectMigrationChangesToIncludeFragments(res.changes, [
1776-'config.agents.defaults.imageModel from "anthropic/claude-haiku-4-5" to "anthropic/claude-sonnet-4-6"',
17771777'config.agents.defaults.imageGenerationModel.primary from "github-copilot/claude-sonnet-4" to "github-copilot/claude-sonnet-4.6"',
17781778'config.agents.defaults.imageGenerationModel.fallbacks.0 from "github-copilot/grok-code-fast-1" to "github-copilot/gpt-5.4-mini"',
17791779'config.agents.defaults.musicGenerationModel from "vercel-ai-gateway/anthropic/claude-opus-4-5" to "vercel-ai-gateway/anthropic/claude-opus-4-6"',
@@ -1800,7 +1800,6 @@ describe("legacy model compat migrate", () => {
18001800'config.agents.defaults.models key from "openai/gpt-5.2-pro" to "openai/gpt-5.5-pro"',
18011801'config.agents.defaults.models key from "github-copilot/gpt-5-mini" to "github-copilot/gpt-5.4-mini"',
18021802'config.plugins.entries.lossless-claw.config.summaryModel from "anthropic/claude-3-5-sonnet" to "anthropic/claude-sonnet-4-6"',
1803-'config.plugins.entries.lossless-claw.subagent.allowedModels.0 from "anthropic/claude-haiku-4-5" to "anthropic/claude-sonnet-4-6"',
18041803'config.channels.modelByChannel.telegram.* from "anthropic/claude-opus-4-5" to "anthropic/claude-opus-4-7"',
18051804]);
18061805});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。