mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test: use release OpenAI model in Parallels
This commit is contained in:
@@ -40,6 +40,7 @@ ${this.input.guestNode} ${this.input.guestOpenClawEntry} config set channels.dis
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} config set channels.discord.enabled true
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} config set channels.discord.groupPolicy allowlist
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} config set channels.discord.guilds ${shellQuote(guilds)} --strict-json
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} plugins deps --repair
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} gateway restart
|
||||
${this.input.guestNode} ${this.input.guestOpenClawEntry} channels status --probe --json`);
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ class MacosSmoke {
|
||||
this.status.freshAgent = "pass";
|
||||
if (this.discordEnabled()) {
|
||||
this.status.freshDiscord = "fail";
|
||||
await this.phase("fresh.discord-config", 180, () => this.configureDiscord());
|
||||
await this.phase("fresh.discord-config", 600, () => this.configureDiscord());
|
||||
await this.phase("fresh.discord-roundtrip", 180, () => this.runDiscordRoundtrip("fresh"));
|
||||
this.status.freshDiscord = "pass";
|
||||
}
|
||||
@@ -536,7 +536,7 @@ class MacosSmoke {
|
||||
this.status.upgradeAgent = "pass";
|
||||
if (this.discordEnabled()) {
|
||||
this.status.upgradeDiscord = "fail";
|
||||
await this.phase("upgrade.discord-config", 180, () => this.configureDiscord());
|
||||
await this.phase("upgrade.discord-config", 600, () => this.configureDiscord());
|
||||
await this.phase("upgrade.discord-roundtrip", 180, () => this.runDiscordRoundtrip("upgrade"));
|
||||
this.status.upgradeDiscord = "pass";
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export function resolveProviderAuth(input: {
|
||||
apiKeyEnv: input.apiKeyEnv || "OPENAI_API_KEY",
|
||||
authChoice: "openai-api-key",
|
||||
authKeyFlag: "openai-api-key",
|
||||
modelId: input.modelId || process.env.OPENCLAW_PARALLELS_OPENAI_MODEL || "openai/gpt-5.4",
|
||||
modelId: input.modelId || process.env.OPENCLAW_PARALLELS_OPENAI_MODEL || "openai/gpt-5.5",
|
||||
},
|
||||
};
|
||||
const resolved = providerDefaults[input.provider];
|
||||
|
||||
@@ -87,7 +87,7 @@ describe("Parallels smoke model selection", () => {
|
||||
const providerAuth = readFileSync(TS_PATHS.providerAuth, "utf8");
|
||||
|
||||
expect(providerAuth).toContain("OPENCLAW_PARALLELS_OPENAI_MODEL");
|
||||
expect(providerAuth).toContain("openai/gpt-5.4");
|
||||
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"');
|
||||
@@ -225,7 +225,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(
|
||||
@@ -363,6 +363,7 @@ console.log(resolveUbuntuVmName("Ubuntu missing"));
|
||||
expect(macos).not.toContain("Authorization: Bot");
|
||||
expect(discord).toContain("Authorization: Bot");
|
||||
expect(discord).toContain('"--silent"');
|
||||
expect(discord).toContain("plugins deps --repair");
|
||||
expect(discord).toContain("channels status --probe --json");
|
||||
expect(discord).toContain("Stop ${this.input.vmName} after successful Discord smoke");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user