mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-23 12:31:30 +02:00
Fix Empty Chat for API (#39)
This commit is contained in:
@@ -66,7 +66,7 @@ def handle_simplified_chat_message(
|
|||||||
parent_message, _ = create_chat_chain(
|
parent_message, _ = create_chat_chain(
|
||||||
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
|
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
|
||||||
)
|
)
|
||||||
except RuntimeError:
|
except Exception:
|
||||||
parent_message = get_or_create_root_message(
|
parent_message = get_or_create_root_message(
|
||||||
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
|
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user