From 797aa6076af2ba72d032f9184d69d4b7d1ae30b9 Mon Sep 17 00:00:00 2001 From: Magicbook1108 Date: Fri, 17 Apr 2026 11:32:48 +0800 Subject: [PATCH] Fix: keyword extraction (#14177) ### What problem does this PR solve? Fix: keyword extraction ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/db/services/dialog_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/db/services/dialog_service.py b/api/db/services/dialog_service.py index 32de922ab1..cadf76c2aa 100644 --- a/api/db/services/dialog_service.py +++ b/api/db/services/dialog_service.py @@ -594,8 +594,7 @@ async def async_chat(dialog, messages, stream=True, **kwargs): ) if prompt_config.get("keyword", False): - questions[-1] += await keyword_extraction(chat_mdl, questions[-1]) - + questions[-1] = questions[-1] + "," + await keyword_extraction(chat_mdl, questions[-1]) refine_question_ts = timer() thought = ""