@@ -739,29 +739,35 @@ class Me {
739
739
/**
740
740
* Show the configurable parameters info in the passed Div element.
741
741
* @param {HTMLDivElement } elDiv
742
+ * @param {boolean } bAll
742
743
*/
743
- show_info ( elDiv ) {
744
+ show_info ( elDiv , bAll = false ) {
744
745
745
746
let p = ui . el_create_append_p ( "Settings (devel-tools-console document[gMe])" , elDiv ) ;
746
747
p . className = "role-system" ;
747
748
748
- ui . el_create_append_p ( `baseURL: ${ this . baseURL } ` , elDiv ) ;
749
+ if ( bAll ) {
749
750
750
- ui . el_create_append_p ( `Authorization :${ this . headers [ "Authorization" ] } ` , elDiv ) ;
751
+ ui . el_create_append_p ( `baseURL :${ this . baseURL } ` , elDiv ) ;
751
752
752
- ui . el_create_append_p ( `bStream :${ this . bStream } ` , elDiv ) ;
753
+ ui . el_create_append_p ( `Authorization :${ this . headers [ "Authorization" ] } ` , elDiv ) ;
753
754
754
- ui . el_create_append_p ( `bCompletionFreshChatAlways :${ this . bCompletionFreshChatAlways } ` , elDiv ) ;
755
+ ui . el_create_append_p ( `bStream :${ this . bStream } ` , elDiv ) ;
755
756
756
- ui . el_create_append_p ( `bCompletionInsertStandardRolePrefix :${ this . bCompletionInsertStandardRolePrefix } ` , elDiv ) ;
757
+ ui . el_create_append_p ( `bCompletionFreshChatAlways :${ this . bCompletionFreshChatAlways } ` , elDiv ) ;
757
758
758
- ui . el_create_append_p ( `bTrimGarbage :${ this . bTrimGarbage } ` , elDiv ) ;
759
+ ui . el_create_append_p ( `bCompletionInsertStandardRolePrefix :${ this . bCompletionInsertStandardRolePrefix } ` , elDiv ) ;
759
760
760
- ui . el_create_append_p ( `iRecentUserMsgCnt :${ this . iRecentUserMsgCnt } ` , elDiv ) ;
761
+ ui . el_create_append_p ( `bTrimGarbage :${ this . bTrimGarbage } ` , elDiv ) ;
761
762
762
- ui . el_create_append_p ( `chatRequestOptions :${ JSON . stringify ( this . chatRequestOptions , null , "\t" ) } ` , elDiv ) ;
763
+ ui . el_create_append_p ( `iRecentUserMsgCnt :${ this . iRecentUserMsgCnt } ` , elDiv ) ;
763
764
764
- ui . el_create_append_p ( `ApiEndPoint:${ this . apiEP } ` , elDiv ) ;
765
+ ui . el_create_append_p ( `ApiEndPoint:${ this . apiEP } ` , elDiv ) ;
766
+
767
+ }
768
+
769
+ ui . el_create_append_p ( `chatRequestOptions:${ JSON . stringify ( this . chatRequestOptions , null , " - " ) } ` , elDiv ) ;
770
+ ui . el_create_append_p ( `headers:${ JSON . stringify ( this . headers , null , " - " ) } ` , elDiv ) ;
765
771
766
772
}
767
773
0 commit comments