@tstdl/base 0.93.50 → 0.93.51
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/ai/ai.service.js +1 -1
- package/package.json +1 -1
package/ai/ai.service.js
CHANGED
|
@@ -468,7 +468,7 @@ export function mergeGenerationStreamItems(items, schema) {
|
|
|
468
468
|
parsed = JSON.parse(this.text);
|
|
469
469
|
}
|
|
470
470
|
catch (error) {
|
|
471
|
-
throw new
|
|
471
|
+
throw new SyntaxError(`Failed to parse model output as JSON. Raw text: "${this.text}"`, { cause: error });
|
|
472
472
|
}
|
|
473
473
|
return Schema.parse(schema, parsed, { coerce: true });
|
|
474
474
|
},
|