refactor(providers): remove unused catalog metadata exports · openclaw/openclaw@4560597
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,9 +3,6 @@ import { describe, expect, it } from "vitest";
|
3 | 3 | import { |
4 | 4 | buildMistralCatalogModels, |
5 | 5 | buildMistralModelDefinition, |
6 | | -MISTRAL_DEFAULT_CONTEXT_WINDOW, |
7 | | -MISTRAL_DEFAULT_COST, |
8 | | -MISTRAL_DEFAULT_MAX_TOKENS, |
9 | 6 | MISTRAL_DEFAULT_MODEL_ID, |
10 | 7 | } from "./model-definitions.js"; |
11 | 8 | |
@@ -21,11 +18,9 @@ describe("mistral model definitions", () => {
|
21 | 18 | it("uses current OpenClaw pricing for the bundled default model", () => { |
22 | 19 | const model = buildMistralModelDefinition(); |
23 | 20 | expect(model.id).toBe(MISTRAL_DEFAULT_MODEL_ID); |
24 | | -expect(model.contextWindow).toBe(MISTRAL_DEFAULT_CONTEXT_WINDOW); |
25 | | -expect(model.maxTokens).toBe(MISTRAL_DEFAULT_MAX_TOKENS); |
26 | | -expect(model.cost).toEqual(MISTRAL_DEFAULT_COST); |
27 | | - |
28 | | -expect(MISTRAL_DEFAULT_COST).toEqual({ |
| 21 | +expect(model.contextWindow).toBe(262144); |
| 22 | +expect(model.maxTokens).toBe(16384); |
| 23 | +expect(model.cost).toEqual({ |
29 | 24 | input: 0.5, |
30 | 25 | output: 1.5, |
31 | 26 | cacheRead: 0.05, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。