@claritylabs/cl-sdk 1.3.1 → 1.3.2

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/dist/index.mjs CHANGED
@@ -223,7 +223,8 @@ function resolveModelBudget(params) {
223
223
  const schemaTokens = estimateTokens(params.schemaSizeBytes) ?? 0;
224
224
  const expectedListLength = positiveInteger(params.expectedListLength) ?? 0;
225
225
  const warnings = [];
226
- let maxTokens = constrainedPreference ?? taskCapability ?? longListCapability ?? defaultCapability ?? hintTokens;
226
+ const preferredOutputTokens = constrainedPreference ?? taskCapability ?? longListCapability ?? defaultCapability ?? hintTokens;
227
+ let maxTokens = hardMaxOutputTokens ?? modelMaxOutputTokens ?? preferredOutputTokens;
227
228
  if (minOutputTokens) {
228
229
  maxTokens = Math.max(maxTokens, minOutputTokens);
229
230
  }
@@ -252,6 +253,7 @@ function resolveModelBudget(params) {
252
253
  taskKind,
253
254
  maxTokens,
254
255
  hintTokens,
256
+ preferredOutputTokens,
255
257
  modelMaxOutputTokens,
256
258
  hardMaxOutputTokens,
257
259
  estimatedInputTokens,