From 31164db9c0e136d9a353320fb7eca386dd288078 Mon Sep 17 00:00:00 2001 From: Christopher Chou <49086305+BabyChouSr@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:32:23 -0700 Subject: [PATCH] Update conversation.py --- fastchat/conversation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastchat/conversation.py b/fastchat/conversation.py index 792577e88..98926812c 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