Fix Empty Chat for API (#39)

This commit is contained in:
Yuhong Sun 2024-02-20 12:16:52 -08:00 committed by Chris Weaver
parent 9ae3a4af7f
commit 6b46a71cb5

View File

@ -66,7 +66,7 @@ def handle_simplified_chat_message(
parent_message, _ = create_chat_chain(
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
)
except RuntimeError:
except Exception:
parent_message = get_or_create_root_message(
chat_session_id=chat_message_req.chat_session_id, db_session=db_session
)