Skip to content

Commit d4832da

Browse files
committed
fix: show engin type icon after chat created
1 parent 52a5e07 commit d4832da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

backend/apps/chat/curd/chat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def create_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj:
189189
if ds:
190190
chat_info.datasource_exists = True
191191
chat_info.datasource_name = ds.name
192+
chat_info.ds_type = ds.type
192193

193194
if require_datasource and ds:
194195
# generate first empty record

frontend/src/views/chat/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ function onChatCreatedQuick(chat: ChatInfo) {
485485
chatList.value.unshift(chat)
486486
currentChatId.value = chat.id
487487
currentChat.value = chat
488+
console.log(chat)
488489
onChatCreated(chat)
489490
}
490491

0 commit comments

Comments
 (0)