From 821dd65fb3816d53040bc0cdca9aba5b5e5aa242 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 22 Jan 2024 04:15:51 -0800 Subject: [PATCH] API: add a comment --- extensions/openai/completions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/openai/completions.py b/extensions/openai/completions.py index aea07473..810583e1 100644 --- a/extensions/openai/completions.py +++ b/extensions/openai/completions.py @@ -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: