test(docker): scope live gateway discovery · openclaw/openclaw@ff09f80
vincentkoc
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -133,7 +133,7 @@ export const mainLanes = [
|
133 | 133 | "live-gateway", |
134 | 134 | liveDockerScriptCommand( |
135 | 135 | "test-live-gateway-models-docker.sh", |
136 | | -"OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix", |
| 136 | +"OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix OPENCLAW_LIVE_GATEWAY_PROVIDERS=claude-cli,codex-cli,google-gemini-cli", |
137 | 137 | { skipBuild: false }, |
138 | 138 | ), |
139 | 139 | { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -114,6 +114,12 @@ function parseFilter(raw?: string): Set<string> | null {
|
114 | 114 | return ids.length ? new Set(ids) : null; |
115 | 115 | } |
116 | 116 | |
| 117 | +function providerFilterList(): string[] | undefined { |
| 118 | +return PROVIDERS |
| 119 | + ? [...PROVIDERS].toSorted((left, right) => left.localeCompare(right)) |
| 120 | + : undefined; |
| 121 | +} |
| 122 | + |
117 | 123 | function shouldSuppressGatewayLiveOllamaWarnings(): boolean { |
118 | 124 | return PROVIDERS !== null && !PROVIDERS.has("ollama"); |
119 | 125 | } |
@@ -2365,7 +2371,9 @@ describeLive("gateway live (dev agent, profile keys)", () => {
|
2365 | 2371 | logProgress("[all-models] discover candidates"); |
2366 | 2372 | clearRuntimeConfigSnapshot(); |
2367 | 2373 | const cfg = getRuntimeConfig(); |
2368 | | -await ensureOpenClawModelsJson(cfg); |
| 2374 | +await ensureOpenClawModelsJson(cfg, undefined, { |
| 2375 | +providerDiscoveryProviderIds: providerFilterList(), |
| 2376 | +}); |
2369 | 2377 | |
2370 | 2378 | const agentDir = resolveDefaultAgentDir(cfg); |
2371 | 2379 | const authStorage = discoverAuthStorage(agentDir); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。