Skip to content

Commit

Permalink
fix(model): image_url changed to object from string
Browse files Browse the repository at this point in the history
  • Loading branch information
MbBrainz committed Sep 29, 2024
1 parent 650ffbf commit 8cbc061
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class OpenAIChatCompletionChoiceMessageContentItemModel {
return {
"type": type,
if (text != null) "text": text,
if (imageUrl != null) "image_url": imageUrl,
if (imageUrl != null) "image_url": { "url": imageUrl },
if (imageBase64 != null)
"image_url": {"url": "data:image/jpeg;base64,${imageBase64}"}
};
Expand Down

0 comments on commit 8cbc061

Please sign in to comment.