add clear history tips

This commit is contained in:
awwaawwa
2023-07-27 23:07:59 +08:00
parent 4216c5196e
commit e4ba0e6c85
13 changed files with 16 additions and 14 deletions

View File

@@ -97,7 +97,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
"""
if additional_fn is not None:
from core_functional import handle_core_functionality
inputs, history = handle_core_functionality(additional_fn, inputs, history)
inputs, history = handle_core_functionality(additional_fn, inputs, history, chatbot)
raw_input = "What I would like to say is the following: " + inputs
history.extend([inputs, ""])