Skip to content

Commit 33f88e4

Browse files
committed
fix: chat question for mcp
1 parent 66b5650 commit 33f88e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/chat/task/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,4 +646,4 @@ def run_task(llm_service: LLMService, session: SessionDep, in_chat: bool = True)
646646
if in_chat:
647647
yield orjson.dumps({'content': str(e), 'type': 'error'}).decode() + '\n\n'
648648
else:
649-
raise e
649+
yield f'> ❌ **ERROR**\n\n> \n\n> {str(e)}。'

0 commit comments

Comments
 (0)