@@ -139,6 +139,8 @@ export class Chat {
139139 datasource ?: number
140140 engine_type ?: string
141141 ds_type ?: string
142+ recommended_question ?: string | undefined
143+ recommended_generate ?: boolean | undefined
142144
143145 constructor ( )
144146 constructor (
@@ -200,7 +202,9 @@ export class ChatInfo extends Chat {
200202 ds_type ?: string ,
201203 datasource_name ?: string ,
202204 datasource_exists : boolean = true ,
203- records : Array < ChatRecord > = [ ]
205+ records : Array < ChatRecord > = [ ] ,
206+ recommended_question ?: string | undefined ,
207+ recommended_generate ?: boolean | undefined
204208 ) {
205209 super ( )
206210 if ( param1 !== undefined ) {
@@ -213,6 +217,8 @@ export class ChatInfo extends Chat {
213217 this . datasource = param1 . datasource
214218 this . engine_type = param1 . engine_type
215219 this . ds_type = param1 . ds_type
220+ this . recommended_question = recommended_question
221+ this . recommended_generate = recommended_generate
216222 } else {
217223 this . id = param1
218224 this . create_time = getDate ( create_time )
@@ -222,6 +228,8 @@ export class ChatInfo extends Chat {
222228 this . datasource = datasource
223229 this . engine_type = engine_type
224230 this . ds_type = ds_type
231+ this . recommended_question = recommended_question
232+ this . recommended_generate = recommended_generate
225233 }
226234 }
227235 this . datasource_name = datasource_name
@@ -287,7 +295,9 @@ export const chatApi = {
287295 data . ds_type ,
288296 data . datasource_name ,
289297 data . datasource_exists ,
290- toChatRecordList ( data . records )
298+ toChatRecordList ( data . records ) ,
299+ data . recommended_question ,
300+ data . recommended_generate
291301 )
292302 } ,
293303 toChatInfoList : ( list : any [ ] = [ ] ) : ChatInfo [ ] => {
0 commit comments