fix: completion stop invalid (#355)

pull/358/head
John Wang 3 years ago committed by GitHub
parent 3bbc4ad3db
commit ab115b5f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,6 +79,7 @@ class LLMCallbackHandler(BaseCallbackHandler):
self.conversation_message_task.append_message_text(token)
except ConversationTaskStoppedException as ex:
self.on_llm_error(error=ex)
raise ex
self.llm_message.completion += token

Loading…
Cancel
Save