mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-30 12:24:20 +01:00
commit
837bd888e4
|
|
@ -154,7 +154,7 @@ def convert_history(history):
|
|||
system_message = ""
|
||||
|
||||
# Multimodal: convert OpenAI format to multimodal extension format
|
||||
if any(isinstance(entry['content'], list) for entry in history):
|
||||
if any('content' in entry and isinstance(entry['content'], list) for entry in history):
|
||||
new_history = []
|
||||
for entry in history:
|
||||
if isinstance(entry['content'], list):
|
||||
|
|
|
|||
Loading…
Reference in a new issue