@@ -80,7 +80,6 @@ export const Message = types.model({
8080 type : types . enumeration ( [ "user" , "bot" , "system" ] ) ,
8181 message : types . string ,
8282 contexts : types . maybe ( types . array ( ChatContext ) ) ,
83- confirm : types . maybe ( types . boolean ) ,
8483} ) ;
8584
8685export const ChatStore = types
@@ -214,7 +213,6 @@ DevChat key is missing from your environment or settings. Kindly input your DevC
214213 const lastUserMessage = self . messages [ self . messages . length - 2 ] ;
215214 const lastBotMessage = self . messages [ self . messages . length - 1 ] ;
216215 if ( lastUserMessage && lastUserMessage . type === "user" ) {
217- lastBotMessage . confirm = false ;
218216 startGenerating ( lastUserMessage . message , lastUserMessage . contexts ) ;
219217 }
220218 self . disabled = false ;
@@ -223,7 +221,6 @@ DevChat key is missing from your environment or settings. Kindly input your DevC
223221 const cancelDevchatAsk = ( ) => {
224222 const lastBotMessage = self . messages [ self . messages . length - 1 ] ;
225223 if ( lastBotMessage && lastBotMessage . type === "bot" ) {
226- lastBotMessage . confirm = false ;
227224 lastBotMessage . message =
228225 "You've cancelled the question. Please let me know if you have any other questions or if there's anything else I can assist with." ;
229226 }
@@ -281,22 +278,12 @@ Thinking...123
281278 contexts : chatContexts ,
282279 message : userMessage ,
283280 } ) ;
284- const isInstalled = true ;
285281
286- if ( isInstalled ) {
287- // self.disabled = true;
288- // self.errorMessage = '';
289- // self.messages.push({
290- // type: 'bot',
291- // message: '',
292- // confirm: true
293- // });
294- self . messages . push ( {
295- type : "bot" ,
296- message : "" ,
297- } ) ;
298- startGenerating ( userMessage , chatContexts ) ;
299- }
282+ self . messages . push ( {
283+ type : "bot" ,
284+ message : "" ,
285+ } ) ;
286+ startGenerating ( userMessage , chatContexts ) ;
300287
301288 // goto bottom
302289 goScrollBottom ( ) ;
0 commit comments