mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-10 22:09:00 +08:00
fix: completion stop invalid (#355)
This commit is contained in:
parent
3bbc4ad3db
commit
ab115b5f87
@ -79,6 +79,7 @@ class LLMCallbackHandler(BaseCallbackHandler):
|
|||||||
self.conversation_message_task.append_message_text(token)
|
self.conversation_message_task.append_message_text(token)
|
||||||
except ConversationTaskStoppedException as ex:
|
except ConversationTaskStoppedException as ex:
|
||||||
self.on_llm_error(error=ex)
|
self.on_llm_error(error=ex)
|
||||||
|
raise ex
|
||||||
|
|
||||||
self.llm_message.completion += token
|
self.llm_message.completion += token
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user