test: extend Windows Parallels OpenAI timeout · openclaw/openclaw@ca620ea
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -143,6 +143,7 @@ Wait-OpenClawGateway
|
143 | 143 | Invoke-OpenClaw models set ${psSingleQuote(input.auth.modelId)} |
144 | 144 | Invoke-OpenClaw config set agents.defaults.skipBootstrap true --strict-json |
145 | 145 | Invoke-OpenClaw config set tools.profile minimal |
| 146 | +Invoke-OpenClaw config set models.providers.openai '{"baseUrl":"https://api.openai.com/v1","models":[],"timeoutSeconds":300}' --strict-json |
146 | 147 | ${windowsAgentWorkspaceScript("Parallels npm update smoke test assistant.")} |
147 | 148 | Set-Item -Path ('Env:' + ${psSingleQuote(input.auth.apiKeyEnv)}) -Value ${psSingleQuote(input.auth.apiKeyValue)} |
148 | 149 | Invoke-OpenClaw agent --local --agent main --session-id parallels-npm-update-windows --message 'Reply with exact ASCII text OK only.' --thinking minimal --json`; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -883,6 +883,8 @@ Invoke-OpenClaw config set agents.defaults.skipBootstrap true --strict-json
|
883 | 883 | if ($LASTEXITCODE -ne 0) { throw "config set failed" } |
884 | 884 | Invoke-OpenClaw config set tools.profile minimal |
885 | 885 | if ($LASTEXITCODE -ne 0) { throw "tools profile config set failed" } |
| 886 | +Invoke-OpenClaw config set models.providers.openai '{"baseUrl":"https://api.openai.com/v1","models":[],"timeoutSeconds":300}' --strict-json |
| 887 | +if ($LASTEXITCODE -ne 0) { throw "openai provider timeout config set failed" } |
886 | 888 | ${windowsAgentWorkspaceScript("Parallels Windows smoke test assistant.")} |
887 | 889 | Set-Item -Path ('Env:' + ${psSingleQuote(this.auth.apiKeyEnv)}) -Value ${psSingleQuote(this.auth.apiKeyValue)} |
888 | 890 | $args = ${psArray([ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -414,6 +414,8 @@ console.log(JSON.stringify(result));
|
414 | 414 | expect(script).toContain('guestPowerShellBackground(\n "agent-turn"'); |
415 | 415 | expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S"); |
416 | 416 | expect(script).toContain("finalAssistant(Raw|Visible)Text"); |
| 417 | +expect(script).toContain("models.providers.openai"); |
| 418 | +expect(script).toContain('"timeoutSeconds":300'); |
417 | 419 | }); |
418 | 420 | |
419 | 421 | it("waits through transient Windows restoring state before VM operations", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。