@websolutespa/bom-llm 0.0.59 → 0.0.60

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
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.60
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: MessageService abort message
8
+
3
9
  ## 0.0.59
4
10
 
5
11
  ### Patch Changes
package/dist/umd/index.js CHANGED
@@ -19695,7 +19695,15 @@ ${Object.entries(vars).map(_ref2 => {
19695
19695
  }
19696
19696
  }
19697
19697
  } catch (error) {
19698
- console.error('MessageService.sendMessage.error', error);
19698
+ console.warn('MessageService.sendMessage.error', error);
19699
+ if (error === 'cancel') {
19700
+ if (typeof onEnd === 'function') {
19701
+ const response = this.chunksToResponse(decodedChunks);
19702
+ response.threadId = response.threadId || request.threadId || 'unknownThreadId';
19703
+ onEnd(response);
19704
+ }
19705
+ return;
19706
+ }
19699
19707
  let errorMessage = typeof error === 'string' ? error : JSON.stringify(error, null, 2);
19700
19708
  if (error instanceof TypeError) {
19701
19709
  errorMessage = 'TypeError: Browser may not support async iteration';
@@ -19841,7 +19849,7 @@ ${Object.entries(vars).map(_ref2 => {
19841
19849
  console.log('MessageService.abort.reader.error', error);
19842
19850
  });
19843
19851
  }
19844
- lastMessage.aborter.abort();
19852
+ lastMessage.aborter.abort('cancel');
19845
19853
  } catch (error) {
19846
19854
  console.log('MessageService.abort.error', error);
19847
19855
  }