test(ci): update agent command model-selection mocks · openclaw/openclaw@3c7c03f
vincentkoc
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -372,6 +372,7 @@ vi.mock("./model-catalog.js", () => ({
|
372 | 372 | })); |
373 | 373 | |
374 | 374 | vi.mock("./model-selection.js", () => { |
| 375 | +const normalizeProviderId = (provider: string) => provider.trim().toLowerCase(); |
375 | 376 | const buildAllowedModelSet = ({ |
376 | 377 | cfg, |
377 | 378 | catalog, |
@@ -537,6 +538,7 @@ vi.mock("./model-selection.js", () => {
|
537 | 538 | }, |
538 | 539 | modelKey: (p: string, m: string) => `${p}/${m}`, |
539 | 540 | normalizeModelRef: (p: string, m: string) => ({ provider: p, model: m }), |
| 541 | + normalizeProviderId, |
540 | 542 | parseModelRef: (m: string, p: string) => ({ provider: p, model: m }), |
541 | 543 | resolveConfiguredModelRef: ({ cfg }: { cfg?: unknown }) => { |
542 | 544 | const raw = (cfg as { agents?: { defaults?: { model?: string | { primary?: string } } } }) |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。