Fix loading session in chat mode

This commit is contained in:
oobabooga 2023-08-02 21:13:16 -07:00
parent 4b6c1d3f08
commit 32c564509e
3 changed files with 22 additions and 8 deletions

View file

@ -418,6 +418,10 @@ def save_persistent_history(history, character, mode):
def load_persistent_history(state):
if shared.session_is_loading:
shared.session_is_loading = False
return state['history']
if state['mode'] == 'instruct':
return state['history']