@outputai/core 0.16.1-next.219890f.0 → 0.16.1-next.54f6ba3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outputai/core",
3
- "version": "0.16.1-next.219890f.0",
3
+ "version": "0.16.1-next.54f6ba3.0",
4
4
  "description": "The core module of the output framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -28,11 +28,9 @@ const resolvePrice = ( { providerId, group, label, pricing, isReasoning } ) => {
28
28
  return resolveValue( [] );
29
29
  }
30
30
  if ( group === LLMGenerationUsageItem.Group.OUTPUT ) {
31
- const values = [ pricing.output ];
32
- if ( label === 'reasoning' ) {
33
- values.unshift( pricing.reasoning );
34
- }
35
- return resolveValue( values );
31
+ // Reasoning is billed as output unless the catalog lists a separate rate, so using the output rate is not a fallback
32
+ const rate = label === 'reasoning' && isNonNegativeNumber( pricing.reasoning ) ? pricing.reasoning : pricing.output;
33
+ return resolveValue( [ rate ] );
36
34
  }
37
35
 
38
36
  const values = [ pricing.input ];