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
|
-
|
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
|
-
|
255
|
+
handleChainEnd: () => __async(this, null, function* () {
|
256
256
|
yield writer.ready;
|
257
257
|
yield writer.close();
|
258
258
|
}),
|
package/dist/index.mjs
CHANGED
@@ -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
|
-
|
7
|
+
handleChainEnd: () => Promise<void>;
|
8
8
|
handleLLMError: (e: any) => Promise<void>;
|
9
9
|
};
|
10
10
|
};
|
package/dist/langchain-stream.js
CHANGED
@@ -85,7 +85,7 @@ function LangChainStream(callbacks) {
|
|
85
85
|
yield writer.ready;
|
86
86
|
yield writer.write(token);
|
87
87
|
}),
|
88
|
-
|
88
|
+
handleChainEnd: () => __async(this, null, function* () {
|
89
89
|
yield writer.ready;
|
90
90
|
yield writer.close();
|
91
91
|
}),
|