@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.
@@ -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,(.+)$/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenmux/rosetta-ai",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Universal translator between AI provider protocols",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",