From 33f88e4509459ba6a9aed4676fe7882635dda043 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 2 Jul 2025 18:03:12 +0800 Subject: [PATCH] fix: chat question for mcp --- backend/apps/chat/task/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index 1c0a2d00..f0aa5283 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -646,4 +646,4 @@ def run_task(llm_service: LLMService, session: SessionDep, in_chat: bool = True) if in_chat: yield orjson.dumps({'content': str(e), 'type': 'error'}).decode() + '\n\n' else: - raise e + yield f'> ❌ **ERROR**\n\n> \n\n> {str(e)}。'