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.
@@ -16,7 +16,7 @@ function LangChainStream(callbacks) {
16
16
  yield writer.ready;
17
17
  yield writer.write(token);
18
18
  }),
19
- handleLLMEnd: () => __async(this, null, function* () {
19
+ handleChainEnd: () => __async(this, null, function* () {
20
20
  yield writer.ready;
21
21
  yield writer.close();
22
22
  }),
package/dist/index.js CHANGED
@@ -252,7 +252,7 @@ function LangChainStream(callbacks) {
252
252
  yield writer.ready;
253
253
  yield writer.write(token);
254
254
  }),
255
- handleLLMEnd: () => __async(this, null, function* () {
255
+ handleChainEnd: () => __async(this, null, function* () {
256
256
  yield writer.ready;
257
257
  yield writer.close();
258
258
  }),
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PEYAHBDF.mjs";
7
7
  import {
8
8
  LangChainStream
9
- } from "./chunk-EZJ7FC5E.mjs";
9
+ } from "./chunk-GT4HKF2X.mjs";
10
10
  import {
11
11
  OpenAIStream
12
12
  } from "./chunk-TJMME6CL.mjs";
@@ -4,7 +4,7 @@ declare function LangChainStream(callbacks?: AIStreamCallbacks): {
4
4
  stream: ReadableStream<Uint8Array>;
5
5
  handlers: {
6
6
  handleLLMNewToken: (token: string) => Promise<void>;
7
- handleLLMEnd: () => Promise<void>;
7
+ handleChainEnd: () => Promise<void>;
8
8
  handleLLMError: (e: any) => Promise<void>;
9
9
  };
10
10
  };
@@ -85,7 +85,7 @@ function LangChainStream(callbacks) {
85
85
  yield writer.ready;
86
86
  yield writer.write(token);
87
87
  }),
88
- handleLLMEnd: () => __async(this, null, function* () {
88
+ handleChainEnd: () => __async(this, null, function* () {
89
89
  yield writer.ready;
90
90
  yield writer.close();
91
91
  }),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LangChainStream
3
- } from "./chunk-EZJ7FC5E.mjs";
3
+ } from "./chunk-GT4HKF2X.mjs";
4
4
  import "./chunk-265FSSO4.mjs";
5
5
  import "./chunk-2L3ZO4UM.mjs";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",