@ampt/ai 2.0.0 → 2.0.1

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.cjs CHANGED
@@ -42226,7 +42226,7 @@ async function chat(messages, options = {}) {
42226
42226
  transform(chunk2, controller) {
42227
42227
  const event = JSON.parse(decoder.decode(chunk2));
42228
42228
  if (event.completion) {
42229
- controller.enqueue(event.completion);
42229
+ controller.enqueue(Buffer.from(event.completion, "utf8"));
42230
42230
  }
42231
42231
  }
42232
42232
  });
package/dist/index.js CHANGED
@@ -29488,7 +29488,7 @@ async function chat(messages, options = {}) {
29488
29488
  transform(chunk2, controller) {
29489
29489
  const event = JSON.parse(decoder.decode(chunk2));
29490
29490
  if (event.completion) {
29491
- controller.enqueue(event.completion);
29491
+ controller.enqueue(Buffer.from(event.completion, "utf8"));
29492
29492
  }
29493
29493
  }
29494
29494
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampt/ai",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",