codebuddy-stats 1.2.8 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,6 +129,8 @@ export const MODEL_PRICING = {
129
129
  // DeepSeek 系列
130
130
  "deepseek-v3.2": createPricing(0.29, 0.029, 0.43),
131
131
  "deepseek-v3.1": createPricing(0.56, 0.056, 1.68),
132
+ // Kimi 系列
133
+ "kimi-k2-thinking": createPricing(0.6, 0.15, 2.5),
132
134
  // iOA 免费模型
133
135
  "glm-4.7-ioa": createPricing(0, 0, 0),
134
136
  "glm-4.6-ioa": createPricing(0, 0, 0),
@@ -156,9 +158,6 @@ export function getPricingForModel(modelId) {
156
158
  if (modelId && MODEL_PRICING[modelId]) {
157
159
  return MODEL_PRICING[modelId];
158
160
  }
159
- const fallback = MODEL_PRICING[DEFAULT_MODEL_ID];
160
- if (!fallback) {
161
- throw new Error(`Missing pricing for default model: ${DEFAULT_MODEL_ID}`);
162
- }
163
- return fallback;
161
+ // 如果模型ID不在预定义的价格列表里,则算作免费
162
+ return createPricing(0, 0, 0);
164
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuddy-stats",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [