test(live): guard provider scoped gateway path · openclaw/openclaw@d47497c
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2453,7 +2453,7 @@ describeLive("gateway live (dev agent, profile keys)", () => {
|
2453 | 2453 | const useModern = !rawModels || rawModels === "modern" || rawModels === "all"; |
2454 | 2454 | const useExplicit = Boolean(rawModels) && !useModern; |
2455 | 2455 | const filter = useExplicit ? parseFilter(rawModels) : null; |
2456 | | -const useProviderScopedBuiltIns = providerList !== null && !useExplicit; |
| 2456 | +const useProviderScopedBuiltIns = Array.isArray(providerList) && !useExplicit; |
2457 | 2457 | let authProfileStore: AuthProfileStore | undefined; |
2458 | 2458 | let modelRegistry: LiveModelRegistry; |
2459 | 2459 | let all: Array<Model<Api>>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。