Fix stopping strings in the chat API
This commit is contained in:
parent
86c45b67ca
commit
439dd0faab
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue