diff --git a/backend/apps/chat/curd/chat.py b/backend/apps/chat/curd/chat.py index 2d573070..3f10f678 100644 --- a/backend/apps/chat/curd/chat.py +++ b/backend/apps/chat/curd/chat.py @@ -189,6 +189,7 @@ def create_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj: if ds: chat_info.datasource_exists = True chat_info.datasource_name = ds.name + chat_info.ds_type = ds.type if require_datasource and ds: # generate first empty record diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 5a964f20..fde1e808 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -485,6 +485,7 @@ function onChatCreatedQuick(chat: ChatInfo) { chatList.value.unshift(chat) currentChatId.value = chat.id currentChat.value = chat + console.log(chat) onChatCreated(chat) }