update evaluate

Former-commit-id: 288137a76ed1528faa39b467da22f6468ba368ee
This commit is contained in:
hiyouga 2023-09-23 11:55:31 +08:00
parent 2bc64a7636
commit f7cecd20e3

View File

@ -58,7 +58,7 @@ class EvalTemplate:
if not use_history:
query = "\n\n".join(["".join(item) for item in history] + [query])
history = []
return query, resp, history
return query.strip(), resp, history
eval_templates = {