feat: optimize error raise (#820)

This commit is contained in:
takatost 2023-08-13 00:59:36 +08:00 committed by GitHub
commit 1bd0a76a20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 8 deletions

View file

@ -96,4 +96,4 @@ class LLMCallbackHandler(BaseCallbackHandler):
)
self.conversation_message_task.save_message(llm_message=self.llm_message, by_stopped=True)
else:
logging.exception(error)
logging.debug("on_llm_error: %s", error)