mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
fix: chat engine_type not null
This commit is contained in:
@@ -96,6 +96,8 @@ def create_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj:
|
||||
raise Exception(f"Datasource with id {create_chat_obj.datasource} not found")
|
||||
|
||||
chat.engine_type = ds.type_name
|
||||
else:
|
||||
chat.engine_type = ''
|
||||
|
||||
chat_info = ChatInfo(**chat.model_dump())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user