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)
This commit is contained in:
Magicbook1108
2026-04-17 11:32:48 +08:00
committed by GitHub
parent c3bf8d9d60
commit 797aa6076a

View File

@@ -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 = ""