diff --git a/lib/src/core/models/chat/sub_models/choices/sub_models/sub_models/content.dart b/lib/src/core/models/chat/sub_models/choices/sub_models/sub_models/content.dart index 6d410757..d5cfa0a6 100644 --- a/lib/src/core/models/chat/sub_models/choices/sub_models/sub_models/content.dart +++ b/lib/src/core/models/chat/sub_models/choices/sub_models/sub_models/content.dart @@ -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}"} };