fix: chat engine_type not null

This commit is contained in:
ulleo
2025-06-27 13:57:29 +08:00
parent a2b4193c0a
commit 6b6a1c5803
+2
View File
@@ -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())