test: tighten static catalog model assertion · openclaw/openclaw@c0132e9
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -69,17 +69,20 @@ describe("resolveBundledStaticCatalogModel", () => {
|
69 | 69 | cfg: {}, |
70 | 70 | }); |
71 | 71 | |
72 | | -expect(model).toMatchObject({ |
73 | | -provider: "mistral", |
74 | | -id: "mistral-medium-3-5", |
75 | | -name: "Mistral Medium 3.5", |
| 72 | +expect(model).toEqual({ |
76 | 73 | api: "openai-completions", |
77 | 74 | baseUrl: "https://api.mistral.ai/v1", |
78 | | -reasoning: true, |
79 | | -input: ["text", "image"], |
| 75 | +compat: undefined, |
| 76 | +contextTokens: undefined, |
80 | 77 | contextWindow: 262144, |
81 | | -maxTokens: 8192, |
82 | 78 | cost: { input: 1.5, output: 7.5, cacheRead: 0, cacheWrite: 0 }, |
| 79 | +headers: undefined, |
| 80 | +id: "mistral-medium-3-5", |
| 81 | +input: ["text", "image"], |
| 82 | +maxTokens: 8192, |
| 83 | +name: "Mistral Medium 3.5", |
| 84 | +provider: "mistral", |
| 85 | +reasoning: true, |
83 | 86 | }); |
84 | 87 | }); |
85 | 88 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。