answer stream output support

This commit is contained in:
takatost
2024-03-14 20:49:53 +08:00
parent f35ae2355f
commit e6b8b13f2e
10 changed files with 413 additions and 90 deletions

View File

@ -169,7 +169,7 @@ class LLMNode(BaseNode):
text = result.delta.message.content
full_text += text
self.publish_text_chunk(text=text)
self.publish_text_chunk(text=text, value_selector=[self.node_id, 'text'])
if not model:
model = result.model