test(parallels): force Windows OpenAI SSE smoke

This commit is contained in:
Peter Steinberger
2026-05-01 16:46:33 +01:00
parent 8a77f299ee
commit e2a465df4b
2 changed files with 11 additions and 0 deletions

View File

@@ -25,6 +25,15 @@ export function windowsModelProviderTimeoutScript(modelId: string): string {
path: `models.providers.${providerId}`,
value: JSON.parse(configJson) as unknown,
},
{
path: `agents.defaults.models.${modelId}`,
value: {
alias: "GPT",
params: {
transport: "sse",
},
},
},
]);
return `$providerTimeoutBatchPath = Join-Path ([System.IO.Path]::GetTempPath()) 'openclaw-provider-timeout.batch.json'
@'

View File

@@ -484,6 +484,8 @@ console.log(JSON.stringify(result));
expect(powershell).toContain("windowsOpenClawResolver");
expect(powershell).toContain("providerTimeoutConfigJson");
expect(powershell).toContain("models.providers.${providerId}");
expect(powershell).toContain("agents.defaults.models.${modelId}");
expect(powershell).toContain('transport: "sse"');
expect(powershell).toContain("Resolve-OpenClawCommand");
expect(powershell).toContain("npm\\node_modules\\openclaw\\openclaw.mjs");
expect(powershell).toContain("$ErrorActionPreference = 'Continue'");