Implement sessions + add basic multi-user support (#2991)

This commit is contained in:
oobabooga 2023-07-04 00:03:30 -03:00 committed by GitHub
parent 1f8cae14f9
commit 4b1804a438
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 595 additions and 414 deletions

View file

@ -266,8 +266,8 @@ def generate_chat_html(history, name1, name2, reset_cache=False):
def chat_html_wrapper(history, name1, name2, mode, style, reset_cache=False):
if mode == 'instruct':
return generate_instruct_html(history)
return generate_instruct_html(history['visible'])
elif style == 'wpp':
return generate_chat_html(history, name1, name2)
return generate_chat_html(history['visible'], name1, name2)
else:
return generate_cai_chat_html(history, name1, name2, style, reset_cache)
return generate_cai_chat_html(history['visible'], name1, name2, style, reset_cache)