mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
test(release): prefer GPT-5.5 smoke models
This commit is contained in:
@@ -97,7 +97,7 @@ const modelCatalogMocks = getSharedMocks("openclaw.trigger-handling.model-catalo
|
||||
name: "Claude Opus 4.5 (OpenRouter)",
|
||||
contextWindow: 200000,
|
||||
},
|
||||
{ provider: "openai", id: "gpt-4.1-mini", name: "GPT-4.1 mini" },
|
||||
{ provider: "openai", id: "gpt-5.4-mini", name: "GPT-5.4 mini" },
|
||||
{ provider: "openai", id: "gpt-5.5", name: "GPT-5.5" },
|
||||
{ provider: "openai-codex", id: "gpt-5.5", name: "GPT-5.5 (Codex)" },
|
||||
{ provider: "minimax", id: "MiniMax-M2.7", name: "MiniMax M2.7" },
|
||||
|
||||
@@ -88,8 +88,7 @@ describe("Parallels smoke model selection", () => {
|
||||
|
||||
expect(providerAuth).toContain("OPENCLAW_PARALLELS_OPENAI_MODEL");
|
||||
expect(providerAuth).toContain("OPENCLAW_PARALLELS_WINDOWS_OPENAI_MODEL");
|
||||
expect(providerAuth).toContain("openai/gpt-5.4");
|
||||
expect(providerAuth).toContain("openai/gpt-4.1-mini");
|
||||
expect(providerAuth).toContain("openai/gpt-5.5");
|
||||
expect(providerAuth).toContain('authChoice: "openai-api-key"');
|
||||
expect(providerAuth).toContain('authChoice: "apiKey"');
|
||||
expect(providerAuth).toContain('authChoice: "minimax-global-api"');
|
||||
@@ -106,16 +105,14 @@ describe("Parallels smoke model selection", () => {
|
||||
it("writes full model ids as config map keys in provider batches", () => {
|
||||
const source = `
|
||||
import { modelProviderConfigBatchJson } from "./${TS_PATHS.common}";
|
||||
const result = modelProviderConfigBatchJson("openai/gpt-4.1-mini", "windows");
|
||||
const result = modelProviderConfigBatchJson("openai/gpt-5.5", "windows");
|
||||
console.log(result);
|
||||
`;
|
||||
const batch = JSON.parse(runTsEval(source, { OPENAI_API_KEY: "sk-openai" })) as Array<{
|
||||
path: string;
|
||||
}>;
|
||||
|
||||
expect(batch.map((entry) => entry.path)).toContain(
|
||||
'agents.defaults.models["openai/gpt-4.1-mini"]',
|
||||
);
|
||||
expect(batch.map((entry) => entry.path)).toContain('agents.defaults.models["openai/gpt-5.5"]');
|
||||
});
|
||||
|
||||
it("keeps snapshot, host, package, and quote helpers shared", () => {
|
||||
@@ -242,7 +239,7 @@ console.log(resolveUbuntuVmName("Ubuntu missing"));
|
||||
apiKeyValue: "sk-openai",
|
||||
authChoice: "openai-api-key",
|
||||
authKeyFlag: "openai-api-key",
|
||||
modelId: "openai/gpt-5.4",
|
||||
modelId: "openai/gpt-5.5",
|
||||
});
|
||||
|
||||
expect(
|
||||
@@ -260,7 +257,7 @@ console.log(resolveUbuntuVmName("Ubuntu missing"));
|
||||
});
|
||||
});
|
||||
|
||||
it("uses the faster OpenAI model for Windows smoke unless overridden", () => {
|
||||
it("uses the shared GPT-5 OpenAI model for Windows smoke unless overridden", () => {
|
||||
const source = `
|
||||
import { resolveWindowsProviderAuth } from "./${TS_PATHS.common}";
|
||||
const result = resolveWindowsProviderAuth({
|
||||
@@ -270,7 +267,7 @@ console.log(JSON.stringify(result));
|
||||
`;
|
||||
expect(JSON.parse(runTsEval(source, { OPENAI_API_KEY: "sk-openai" }))).toMatchObject({
|
||||
apiKeyEnv: "OPENAI_API_KEY",
|
||||
modelId: "openai/gpt-4.1-mini",
|
||||
modelId: "openai/gpt-5.5",
|
||||
});
|
||||
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user