Skip to content

Commit

Permalink
Update conversation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyChouSr authored Sep 17, 2024
1 parent a04072e commit 31164db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastchat/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
]

Expand All @@ -410,7 +410,7 @@ def to_openai_vision_api_messages(self):
ret.append(
{
"role": "assistant",
"content": [{"type": "text", "text": msg}],
"content": msg,
}
)
return ret
Expand Down

0 comments on commit 31164db

Please sign in to comment.