codebuddy-stats 1.2.9 → 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.
@@ -158,9 +158,6 @@ export function getPricingForModel(modelId) {
158
158
  if (modelId && MODEL_PRICING[modelId]) {
159
159
  return MODEL_PRICING[modelId];
160
160
  }
161
- const fallback = MODEL_PRICING[DEFAULT_MODEL_ID];
162
- if (!fallback) {
163
- throw new Error(`Missing pricing for default model: ${DEFAULT_MODEL_ID}`);
164
- }
165
- return fallback;
161
+ // 如果模型ID不在预定义的价格列表里,则算作免费
162
+ return createPricing(0, 0, 0);
166
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuddy-stats",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [