diff --git a/fastchat/conversation.py b/fastchat/conversation.py index 792577e885..98926812cb 100644 --- a/fastchat/conversation.py +++ b/fastchat/conversation.py @@ -385,7 +385,7 @@ def to_openai_vision_api_messages(self): ret = [ { "role": "system", - "content": [{"type": "text", "text": self.system_message}], + "content": self.system_message, } ] @@ -410,7 +410,7 @@ def to_openai_vision_api_messages(self): ret.append( { "role": "assistant", - "content": [{"type": "text", "text": msg}], + "content": msg, } ) return ret