mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 10:35:10 +02:00
API: add a comment
This commit is contained in:
parent
6247eafcc5
commit
821dd65fb3
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ def convert_history(history):
|
|||
user_input = ""
|
||||
system_message = ""
|
||||
|
||||
# Multimodal: convert OpenAI format to multimodal extension format
|
||||
if any(isinstance(entry['content'], list) for entry in history):
|
||||
new_history = []
|
||||
for entry in history:
|
||||
|
|
Loading…
Reference in a new issue