From fad6414f54a23f609e364ecd98894411dc456615 Mon Sep 17 00:00:00 2001 From: Francesca Giannino Date: Wed, 16 Oct 2024 17:12:53 +0200 Subject: [PATCH] fix: pass system prompts on submit --- .../src/components/internal/orama-chat/orama-chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-stencil/src/components/internal/orama-chat/orama-chat.tsx b/packages/ui-stencil/src/components/internal/orama-chat/orama-chat.tsx index 8892c891..4bb922ec 100644 --- a/packages/ui-stencil/src/components/internal/orama-chat/orama-chat.tsx +++ b/packages/ui-stencil/src/components/internal/orama-chat/orama-chat.tsx @@ -229,7 +229,7 @@ export class OramaChat { throw new Error('Chat Service is not initialized') } - chatContext.chatService.sendQuestion(this.inputValue) + chatContext.chatService.sendQuestion(this.inputValue, this.systemPrompts) this.inputValue = '' }