llmasaservice-client 0.2.0 → 0.2.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/useLLM.ts +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/useLLM.ts
CHANGED
|
@@ -95,7 +95,7 @@ export const useLLM = (options?: LLMServiceType): UseLLMReturnType => {
|
|
|
95
95
|
if (!stream) {
|
|
96
96
|
return await readStream(reader, decoder, stream, {
|
|
97
97
|
signal: options.signal,
|
|
98
|
-
});
|
|
98
|
+
}, onCompleteCallback);
|
|
99
99
|
} else {
|
|
100
100
|
readStream(reader, decoder, stream, {
|
|
101
101
|
signal: options.signal,
|
|
@@ -147,6 +147,7 @@ export const useLLM = (options?: LLMServiceType): UseLLMReturnType => {
|
|
|
147
147
|
|
|
148
148
|
if (onCompleteCallback) {
|
|
149
149
|
onCompleteCallback(result);
|
|
150
|
+
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
break;
|