mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-02-20 14:44:58 +01:00
Merge 11a5cf3bd3 into 910456ba31
This commit is contained in:
commit
5c55e8acc0
|
|
@ -636,9 +636,9 @@ def generate_instruct_html(history, last_message_only=False):
|
|||
|
||||
# Generate messages
|
||||
if not last_message_only and converted_visible[0]:
|
||||
output += create_message("user", converted_visible[0], row_internal[0])
|
||||
output += create_message("user", converted_visible[0], row_visible[0])
|
||||
|
||||
output += create_message("assistant", converted_visible[1], row_internal[1])
|
||||
output += create_message("assistant", converted_visible[1], row_visible[1])
|
||||
|
||||
if not last_message_only:
|
||||
output += "</div></div>"
|
||||
|
|
@ -710,9 +710,9 @@ def generate_cai_chat_html(history, name1, name2, style, character, reset_cache=
|
|||
|
||||
# Generate messages
|
||||
if not last_message_only and converted_visible[0]:
|
||||
output += create_message("user", converted_visible[0], row_internal[0])
|
||||
output += create_message("user", converted_visible[0], row_visible[0])
|
||||
|
||||
output += create_message("assistant", converted_visible[1], row_internal[1])
|
||||
output += create_message("assistant", converted_visible[1], row_visible[1])
|
||||
|
||||
if not last_message_only:
|
||||
output += "</div></div>"
|
||||
|
|
|
|||
Loading…
Reference in a new issue