test: update model list suppression mocks · openclaw/openclaw@be0c1a9
shakkernerd
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -110,16 +110,19 @@ let listRowsModule: typeof import("./list.rows.js");
|
110 | 110 | let listRegistryModule: typeof import("./list.registry.js"); |
111 | 111 | |
112 | 112 | function installModelsListCommandForwardCompatMocks() { |
| 113 | +const suppressOpenAiSpark = ({ |
| 114 | + provider, |
| 115 | + id, |
| 116 | +}: { |
| 117 | +provider?: string | null; |
| 118 | +id?: string | null; |
| 119 | +}) => |
| 120 | +(provider === "openai" || provider === "azure-openai-responses") && |
| 121 | +id === "gpt-5.3-codex-spark"; |
| 122 | + |
113 | 123 | vi.doMock("../../agents/model-suppression.js", () => ({ |
114 | | -shouldSuppressBuiltInModel: ({ |
115 | | - provider, |
116 | | - id, |
117 | | -}: { |
118 | | -provider?: string | null; |
119 | | -id?: string | null; |
120 | | -}) => |
121 | | -(provider === "openai" || provider === "azure-openai-responses") && |
122 | | -id === "gpt-5.3-codex-spark", |
| 124 | +shouldSuppressBuiltInModel: suppressOpenAiSpark, |
| 125 | +shouldSuppressBuiltInModelFromManifest: suppressOpenAiSpark, |
123 | 126 | })); |
124 | 127 | |
125 | 128 | vi.doMock("./load-config.js", () => ({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。