Explorar o código

fix: completion stop invalid (#355)

John Wang hai 1 ano
pai
achega
ab115b5f87
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      api/core/callback_handler/llm_callback_handler.py

+ 1 - 0
api/core/callback_handler/llm_callback_handler.py

@@ -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