@claritylabs/cl-sdk 3.1.21 → 3.1.23

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.
@@ -17,8 +17,8 @@ function resolveModelBudget(params) {
17
17
  const schemaTokens = estimateTokens(params.schemaSizeBytes) ?? 0;
18
18
  const expectedListLength = positiveInteger(params.expectedListLength) ?? 0;
19
19
  const warnings = [];
20
- const preferredOutputTokens = constrainedPreference ?? taskCapability ?? longListCapability ?? defaultCapability ?? hintTokens;
21
- let maxTokens = hardMaxOutputTokens ?? modelMaxOutputTokens ?? preferredOutputTokens;
20
+ const preferredOutputTokens = constrainedPreference ?? taskCapability ?? longListCapability ?? hintTokens ?? defaultCapability;
21
+ let maxTokens = preferredOutputTokens;
22
22
  if (minOutputTokens) {
23
23
  maxTokens = Math.max(maxTokens, minOutputTokens);
24
24
  }