mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04: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