@sinequa/assistant 3.7.2 → 3.7.4

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.
@@ -2591,6 +2591,10 @@ class ChatComponent extends AbstractFacet {
2591
2591
  return;
2592
2592
  }
2593
2593
  const userMsg = { role: 'user', content: '', additionalProperties: { display: false, isUserInput: false, type: "Action", forcedWorkflow: attachDocAction.forcedWorkflow, forcedWorkflowProperties: { ...(attachDocAction.forcedWorkflowProperties || {}), ids }, additionalWorkflowProperties: this.config.additionalWorkflowProperties } };
2594
+ // Remove the search warning message if exists
2595
+ if (this.chatService.chatHistory.at(-1)?.role === 'search-warning') {
2596
+ this.chatService.chatHistory.pop();
2597
+ }
2594
2598
  const messages = [...this.chatService.chatHistory, userMsg];
2595
2599
  this.messages$.next(messages);
2596
2600
  this.fetch(messages);