Spaces:
Running
Running
Update ai-routes.js
Browse files- ai-routes.js +1 -1
ai-routes.js
CHANGED
|
@@ -113,7 +113,7 @@ function convertGeminiToDoubaoInput(baseParams) {
|
|
| 113 |
contentParts.push({ type: textType, text: p.text });
|
| 114 |
}
|
| 115 |
else if (p.inlineData && p.inlineData.mimeType.startsWith('image/')) {
|
| 116 |
-
contentParts.push({ type: '
|
| 117 |
}
|
| 118 |
});
|
| 119 |
}
|
|
|
|
| 113 |
contentParts.push({ type: textType, text: p.text });
|
| 114 |
}
|
| 115 |
else if (p.inlineData && p.inlineData.mimeType.startsWith('image/')) {
|
| 116 |
+
contentParts.push({ type: 'input_image', image_url: { url: `data:${p.inlineData.mimeType};base64,${p.inlineData.data}` } });
|
| 117 |
}
|
| 118 |
});
|
| 119 |
}
|