@@ -7,6 +7,8 @@ interface ChatConfig {
77 sqlbot_name : string
88 expand_thinking_block : boolean
99 limit_rows : boolean
10+ hide_sql : boolean
11+ hide_log : boolean
1012}
1113
1214export const chatConfigStore = defineStore ( 'chatConfigStore' , {
@@ -15,6 +17,8 @@ export const chatConfigStore = defineStore('chatConfigStore', {
1517 sqlbot_name : 'SQLBot' ,
1618 expand_thinking_block : false ,
1719 limit_rows : true ,
20+ hide_sql : false ,
21+ hide_log : false ,
1822 }
1923 } ,
2024 getters : {
@@ -24,6 +28,12 @@ export const chatConfigStore = defineStore('chatConfigStore', {
2428 getExpandThinkingBlock ( ) : boolean {
2529 return this . expand_thinking_block
2630 } ,
31+ getHideSQL ( ) : boolean {
32+ return this . hide_sql
33+ } ,
34+ getHideLog ( ) : boolean {
35+ return this . hide_log
36+ } ,
2737 getLimitRows ( ) : boolean {
2838 return this . limit_rows
2939 } ,
@@ -36,6 +46,12 @@ export const chatConfigStore = defineStore('chatConfigStore', {
3646 if ( item . pkey === 'chat.expand_thinking_block' ) {
3747 this . expand_thinking_block = formatArg ( item . pval )
3848 }
49+ if ( item . pkey === 'chat.hide_sql' ) {
50+ this . hide_sql = formatArg ( item . pval )
51+ }
52+ if ( item . pkey === 'chat.hide_log' ) {
53+ this . hide_log = formatArg ( item . pval )
54+ }
3955 if ( item . pkey === 'chat.limit_rows' ) {
4056 this . limit_rows = formatArg ( item . pval )
4157 }
0 commit comments