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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # llmasaservice-client
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - callback on complete bug fix
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "llmasaservice-client",
3
3
  "license": "MIT",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
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;