Skip to content

Commit 6b6a1c5

Browse files
committed
fix: chat engine_type not null
1 parent a2b4193 commit 6b6a1c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/apps/chat/curd/chat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def create_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj:
9696
raise Exception(f"Datasource with id {create_chat_obj.datasource} not found")
9797

9898
chat.engine_type = ds.type_name
99+
else:
100+
chat.engine_type = ''
99101

100102
chat_info = ChatInfo(**chat.model_dump())
101103

0 commit comments

Comments
 (0)