@zenmux/rosetta-ai 0.11.0 → 0.12.0

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.
@@ -361,10 +361,15 @@ class MessagesToResponsesConverter {
361
361
  parts.push({
362
362
  type: "input_file",
363
363
  file_data: `data:${src.media_type};base64,${src.data}`,
364
+ filename: block.title || "file",
364
365
  });
365
366
  }
366
367
  else if (src.type === "url") {
367
- parts.push({ type: "input_file", file_data: src.url });
368
+ parts.push({
369
+ type: "input_file",
370
+ file_data: src.url,
371
+ filename: block.title || "file",
372
+ });
368
373
  }
369
374
  else if (src.type === "text") {
370
375
  parts.push({ type: "input_text", text: src.data });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenmux/rosetta-ai",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Universal translator between AI provider protocols",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",