@zenmux/rosetta-ai 1.0.38 → 1.0.39
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/dist/responses/gemini.js +8 -0
- package/package.json +1 -1
package/dist/responses/gemini.js
CHANGED
|
@@ -509,6 +509,14 @@ class ResponsesToGeminiConverter {
|
|
|
509
509
|
else if (p.type === "refusal") {
|
|
510
510
|
parts.push({ text: p.refusal });
|
|
511
511
|
}
|
|
512
|
+
else if (p.type === "input_audio") {
|
|
513
|
+
parts.push({
|
|
514
|
+
inlineData: {
|
|
515
|
+
mimeType: `audio/${p.input_audio?.format || "*"}`,
|
|
516
|
+
data: p.input_audio?.data,
|
|
517
|
+
},
|
|
518
|
+
});
|
|
519
|
+
}
|
|
512
520
|
else if (p.type === "input_image") {
|
|
513
521
|
const url = p.image_url || "";
|
|
514
522
|
const match = url.match(/^data:([^;]+);base64,(.+)$/);
|