test: use built-in OpenAI provider in Windows smoke · openclaw/openclaw@7719dd8
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -144,20 +144,6 @@ Wait-OpenClawGateway
|
144 | 144 | Invoke-OpenClaw models set ${psSingleQuote(input.auth.modelId)} |
145 | 145 | Invoke-OpenClaw config set agents.defaults.skipBootstrap true --strict-json |
146 | 146 | Invoke-OpenClaw config set tools.profile minimal |
147 | | -$configPath = Join-Path $env:USERPROFILE '.openclaw\\openclaw.json' |
148 | | -$config = Get-Content $configPath -Raw | ConvertFrom-Json |
149 | | -if ($null -eq $config.models) { |
150 | | - $config | Add-Member -MemberType NoteProperty -Name models -Value ([pscustomobject]@{}) |
151 | | -} |
152 | | -if ($null -eq $config.models.providers) { |
153 | | - $config.models | Add-Member -MemberType NoteProperty -Name providers -Value ([pscustomobject]@{}) |
154 | | -} |
155 | | -$config.models.providers | Add-Member -Force -MemberType NoteProperty -Name openai -Value ([pscustomobject]@{ |
156 | | - baseUrl = 'https://api.openai.com/v1' |
157 | | - models = @() |
158 | | - timeoutSeconds = 300 |
159 | | -}) |
160 | | -$config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8 |
161 | 147 | $sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-npm-update-windows.jsonl' |
162 | 148 | Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue |
163 | 149 | ${windowsAgentWorkspaceScript("Parallels npm update smoke test assistant.")} |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -891,20 +891,6 @@ Invoke-OpenClaw config set agents.defaults.skipBootstrap true --strict-json
|
891 | 891 | if ($LASTEXITCODE -ne 0) { throw "config set failed" } |
892 | 892 | Invoke-OpenClaw config set tools.profile minimal |
893 | 893 | if ($LASTEXITCODE -ne 0) { throw "tools profile config set failed" } |
894 | | -$configPath = Join-Path $env:USERPROFILE '.openclaw\\openclaw.json' |
895 | | -$config = Get-Content $configPath -Raw | ConvertFrom-Json |
896 | | -if ($null -eq $config.models) { |
897 | | - $config | Add-Member -MemberType NoteProperty -Name models -Value ([pscustomobject]@{}) |
898 | | -} |
899 | | -if ($null -eq $config.models.providers) { |
900 | | - $config.models | Add-Member -MemberType NoteProperty -Name providers -Value ([pscustomobject]@{}) |
901 | | -} |
902 | | -$config.models.providers | Add-Member -Force -MemberType NoteProperty -Name openai -Value ([pscustomobject]@{ |
903 | | - baseUrl = 'https://api.openai.com/v1' |
904 | | - models = @() |
905 | | - timeoutSeconds = 300 |
906 | | -}) |
907 | | -$config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8 |
908 | 894 | $sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-windows-smoke.jsonl' |
909 | 895 | Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue |
910 | 896 | ${windowsAgentWorkspaceScript("Parallels Windows smoke test assistant.")} |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -452,8 +452,8 @@ console.log(JSON.stringify(result));
|
452 | 452 | expect(script).toContain('guestPowerShellBackground(\n "agent-turn"'); |
453 | 453 | expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S"); |
454 | 454 | expect(script).toContain("finalAssistant(Raw|Visible)Text"); |
455 | | -expect(script).toContain("$config.models.providers"); |
456 | | -expect(script).toContain("timeoutSeconds = 300"); |
| 455 | +expect(script).not.toContain("$config.models.providers"); |
| 456 | +expect(script).not.toContain("timeoutSeconds = 300"); |
457 | 457 | expect(script).toContain("parallels-windows-smoke.jsonl"); |
458 | 458 | }); |
459 | 459 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。