mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-11-09 14:23:55 +00:00
Fix: rm think if stream is Flase. (#5458)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
8b2c04abc4
commit
5fdfb8d465
@ -194,7 +194,7 @@ def chat(dialog, messages, stream=True, **kwargs):
|
|||||||
if isinstance(think, str):
|
if isinstance(think, str):
|
||||||
thought = think
|
thought = think
|
||||||
knowledges = [t for t in think.split("\n") if t]
|
knowledges = [t for t in think.split("\n") if t]
|
||||||
else:
|
elif stream:
|
||||||
yield think
|
yield think
|
||||||
else:
|
else:
|
||||||
kbinfos = retriever.retrieval(" ".join(questions), embd_mdl, tenant_ids, dialog.kb_ids, 1, dialog.top_n,
|
kbinfos = retriever.retrieval(" ".join(questions), embd_mdl, tenant_ids, dialog.kb_ids, 1, dialog.top_n,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user