mirror of https://github.com/langgenius/dify.git
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…
Reference in New Issue