Fix stopping strings in the chat API

This commit is contained in:
oobabooga 2023-08-28 19:40:11 -07:00
parent 86c45b67ca
commit 439dd0faab

View File

@ -176,6 +176,9 @@ def get_stopping_strings(state):
f"\n{state['name2']}:" f"\n{state['name2']}:"
] ]
if 'stopping_strings' in state and isinstance(state['stopping_strings'], list):
stopping_strings += state.pop('stopping_strings')
return stopping_strings return stopping_strings