@@ -477,47 +477,6 @@ class SimpleChat {
477477 this . xchat [ lastIndex ] . ns . content = content ;
478478 }
479479
480- /**
481- * Show the chat contents in the specified div.
482- * Also update the user query input box, with ToolTemp role message, if any.
483- *
484- * If requested to clear prev stuff and inturn no chat content then show
485- * * usage info
486- * * option to load prev saved chat if any
487- * * as well as settings/info.
488- * @param {HTMLDivElement } div
489- * @param {HTMLInputElement } elInUser
490- * @param {boolean } bClear
491- * @param {boolean } bShowInfoAll
492- */
493- showTOREMOVE ( div , elInUser , bClear = true , bShowInfoAll = false ) {
494- if ( bClear ) {
495- div . replaceChildren ( ) ;
496- }
497- let last = undefined ;
498- for ( const [ i , x ] of this . recent_chat ( gMe . chatProps . iRecentUserMsgCnt ) . entries ( ) ) {
499- if ( x . ns . role === Roles . ToolTemp ) {
500- if ( i == ( this . xchat . length - 1 ) ) {
501- elInUser . value = x . ns . content ;
502- }
503- continue
504- }
505- let entry = ui . el_create_append_p ( `${ x . ns . role } : ${ x . content_equiv ( ) } ` , div ) ;
506- entry . className = `role-${ x . ns . role } ` ;
507- last = entry ;
508- }
509- if ( last !== undefined ) {
510- last . scrollIntoView ( false ) ;
511- } else {
512- if ( bClear ) {
513- div . innerHTML = gUsageMsg ;
514- gMe . setup_load ( div , this ) ;
515- gMe . show_info ( div , bShowInfoAll ) ;
516- }
517- }
518- return last ;
519- }
520-
521480 /**
522481 * Setup the fetch headers.
523482 * It picks the headers from gMe.headers.
0 commit comments