modelmix 3.5.2 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -779,12 +779,12 @@ class MixOpenAI extends MixCustom {
|
|
|
779
779
|
for (const content of message.content) {
|
|
780
780
|
if (content.type === 'image') {
|
|
781
781
|
const { type, media_type, data } = content.source;
|
|
782
|
-
message.content = {
|
|
782
|
+
message.content = [{
|
|
783
783
|
type: 'image_url',
|
|
784
784
|
image_url: {
|
|
785
785
|
url: `data:${media_type};${type},${data}`
|
|
786
786
|
}
|
|
787
|
-
};
|
|
787
|
+
}];
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
|