@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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
});
|