File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
services/web/src/components/bot Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -211,10 +211,6 @@ const ChatBotComponent: React.FC<ChatBotComponentProps> = (props) => {
211211 response . body . initialized === true ;
212212
213213 if ( isInitialized ) {
214- await params . injectMessage (
215- "Chatbot is already initialized! Loading chat history..." ,
216- ) ;
217-
218214 // Fetch and display chat history
219215 const chatHistory = await fetchChatHistory ( ) ;
220216 console . log ( "Chat history:" , chatHistory ) ;
@@ -233,7 +229,7 @@ const ChatBotComponent: React.FC<ChatBotComponentProps> = (props) => {
233229 ) ;
234230 }
235231 await params . injectMessage (
236- `Loaded ${ chatHistory . length } previous messages. You can now start chatting !` ,
232+ `Loaded ${ chatHistory . length } previous messages!` ,
237233 ) ;
238234 }
239235
@@ -334,7 +330,7 @@ What would you like to do next?`);
334330 } ) ) ;
335331
336332 if ( chatHistory . length > 0 ) {
337- await params . injectMessage (
333+ await params . simulateStreamMessage (
338334 `Loaded ${ chatHistory . length } previous messages. You can now start chatting!` ,
339335 ) ;
340336 } else {
You can’t perform that action at this time.
0 commit comments