API: add a comment

This commit is contained in:
oobabooga 2024-01-22 04:15:51 -08:00
parent 6247eafcc5
commit 821dd65fb3

View File

@ -153,6 +153,7 @@ def convert_history(history):
user_input = "" user_input = ""
system_message = "" system_message = ""
# Multimodal: convert OpenAI format to multimodal extension format
if any(isinstance(entry['content'], list) for entry in history): if any(isinstance(entry['content'], list) for entry in history):
new_history = [] new_history = []
for entry in history: for entry in history: