mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Fix stopping strings in the chat API
This commit is contained in:
parent
86c45b67ca
commit
439dd0faab
@ -176,6 +176,9 @@ def get_stopping_strings(state):
|
||||
f"\n{state['name2']}:"
|
||||
]
|
||||
|
||||
if 'stopping_strings' in state and isinstance(state['stopping_strings'], list):
|
||||
stopping_strings += state.pop('stopping_strings')
|
||||
|
||||
return stopping_strings
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user