Skip to content

Commit 888f5ee

Browse files
committed
feat: chat add ds type
1 parent d27f7c1 commit 888f5ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/api/chat.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export class ChatInfo extends Chat {
180180
chat_type: string,
181181
datasource: number,
182182
engine_type: string,
183+
ds_type: string,
183184
datasource_name: string,
184185
datasource_exists: boolean,
185186
records: Array<ChatRecord>
@@ -192,6 +193,7 @@ export class ChatInfo extends Chat {
192193
chat_type?: string,
193194
datasource?: number,
194195
engine_type?: string,
196+
ds_type?: string,
195197
datasource_name?: string,
196198
datasource_exists: boolean = true,
197199
records: Array<ChatRecord> = []
@@ -206,6 +208,7 @@ export class ChatInfo extends Chat {
206208
this.chat_type = param1.chat_type
207209
this.datasource = param1.datasource
208210
this.engine_type = param1.engine_type
211+
this.ds_type = param1.ds_type
209212
} else {
210213
this.id = param1
211214
this.create_time = getDate(create_time)
@@ -214,6 +217,7 @@ export class ChatInfo extends Chat {
214217
this.chat_type = chat_type
215218
this.datasource = datasource
216219
this.engine_type = engine_type
220+
this.ds_type = ds_type
217221
}
218222
}
219223
this.datasource_name = datasource_name
@@ -275,6 +279,7 @@ export const chatApi = {
275279
data.chat_type,
276280
data.datasource,
277281
data.engine_type,
282+
data.ds_type,
278283
data.datasource_name,
279284
data.datasource_exists,
280285
toChatRecordList(data.records)

0 commit comments

Comments
 (0)