Implement sessions + add basic multi-user support (#2991)
This commit is contained in:
parent
1f8cae14f9
commit
4b1804a438
17 changed files with 595 additions and 414 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue