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)}。'