@wix/evalforge-evaluator 0.208.0 → 0.210.0

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.
@@ -1,8 +1,13 @@
1
1
  import type { StepResult, ToolSet } from 'ai';
2
2
  /**
3
3
  * Calculate the cost for a single LLM step.
4
- * Prefers the gateway-reported cost (accurate with cache discounts),
5
- * falling back to the built-in pricing table.
4
+ * Prefers the gateway-reported cost (accurate, and already net of the AI-gateway
5
+ * discount), falling back to the built-in pricing table.
6
+ *
7
+ * The fallback table holds UNDISCOUNTED list prices, so a step priced this way
8
+ * over-reports cost. We `console.warn` whenever the fallback fires so the rate is
9
+ * observable in logs — a high rate means users are seeing inflated, pre-discount
10
+ * costs and is worth investigating.
6
11
  */
7
12
  export declare function calculateStepCost(step: StepResult<ToolSet>, modelId: string, provider: string, tokenUsage: {
8
13
  prompt: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-evaluator",
3
- "version": "0.208.0",
3
+ "version": "0.210.0",
4
4
  "description": "EvalForge Evaluator",
5
5
  "bin": "./build/index.js",
6
6
  "files": [
@@ -72,5 +72,5 @@
72
72
  "artifactId": "evalforge-evaluator"
73
73
  }
74
74
  },
75
- "falconPackageHash": "3138a816467d574ce74af951cc669ecebc92eade9a347b15a876382b"
75
+ "falconPackageHash": "13db579d8dcd67d4faa1faf9cbe5c203e1ae4ebc58efa2e20b912b7b"
76
76
  }