diff --git a/src/routers/chat_router.py b/src/routers/chat_router.py index 12a60100..7395f9f2 100644 --- a/src/routers/chat_router.py +++ b/src/routers/chat_router.py @@ -54,6 +54,7 @@ def chat_post( yield make_chunk(message=f"Retriever error: {e}", status="error") return + yield make_chunk(status="generating") messages = history_manager.get_history_with_msg(modified_query, max_rounds=meta.get('history_round')) history_manager.add_user(query) # 注意这里使用原始查询 logger.debug(f"Web history: {history_manager.messages}") diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index 7dc7fb8e..92d644f8 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -77,6 +77,7 @@