@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.
Files changed (2) hide show
  1. package/ai/ai.service.js +1 -1
  2. 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 Error(`Failed to parse model output as JSON. Raw text: "${this.text}"`, { cause: error });
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.93.50",
3
+ "version": "0.93.51",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"