opencode-see-image 0.8.4 → 0.8.5

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.
Files changed (2) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -261,7 +261,7 @@ async function seeImageViaSDK(
261
261
  body: {
262
262
  model: { providerID, modelID },
263
263
  parts: [
264
- { type: "file", mime: mediaType, url: fileUrl },
264
+ { type: "file", mime: mediaType, url: providerID === "opencode" ? fileUrl : dataUrl },
265
265
  { type: "text", text: prompt },
266
266
  ],
267
267
  tools: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-see-image",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Give non-vision opencode models the ability to see images/screenshots by routing them to a vision-capable model (MiniMax M3 via opencode-go by default).",
5
5
  "type": "module",
6
6
  "main": "index.ts",