@wix/evalforge-types 0.87.0 → 0.88.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/build/index.js +7 -1
- package/build/index.js.map +2 -2
- package/build/index.mjs +7 -1
- package/build/index.mjs.map +2 -2
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -394,7 +394,13 @@ function normalizeModelId(modelId) {
|
|
|
394
394
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
395
395
|
var ModelConfigSchema = import_zod4.z.object({
|
|
396
396
|
model: AnyModelSchema,
|
|
397
|
-
|
|
397
|
+
// In Zod v4, z.preprocess() creates ZodEffects which is not recognized as optional
|
|
398
|
+
// by the object schema. Outer .optional() ensures missing keys are accepted; inner
|
|
399
|
+
// .optional() handles null→undefined conversion from the preprocessor.
|
|
400
|
+
temperature: import_zod4.z.preprocess(
|
|
401
|
+
nullToUndefined,
|
|
402
|
+
import_zod4.z.number().min(0).max(1).optional()
|
|
403
|
+
).optional(),
|
|
398
404
|
maxTokens: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(1).optional()).optional(),
|
|
399
405
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
400
406
|
maxTurns: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().int().min(0).optional()).optional()
|