@fre4x/gemini 1.0.30 → 1.0.31
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/index.js +8 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55592,6 +55592,7 @@ Mock response \u2014 no API call made.` }] };
|
|
|
55592
55592
|
if (IS_MOCK) {
|
|
55593
55593
|
const mockBase64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
55594
55594
|
const content2 = [
|
|
55595
|
+
{ type: "text", text: `\u2705 Image generated successfully (1 image, prompt: "${prompt}").` },
|
|
55595
55596
|
{ type: "image", data: mockBase64, mimeType: "image/png" }
|
|
55596
55597
|
];
|
|
55597
55598
|
if (output_dir) {
|
|
@@ -55634,11 +55635,13 @@ Check Imagen access at https://ai.google.dev/` }],
|
|
|
55634
55635
|
savedPaths.push(fpath);
|
|
55635
55636
|
}
|
|
55636
55637
|
}
|
|
55637
|
-
const content = [
|
|
55638
|
-
|
|
55639
|
-
|
|
55640
|
-
|
|
55641
|
-
|
|
55638
|
+
const content = [
|
|
55639
|
+
// Text confirmation first — so AI knows image was generated even if client can't render images
|
|
55640
|
+
{ type: "text", text: `\u2705 Image generated successfully (${images.length} image${images.length > 1 ? "s" : ""}, prompt: "${prompt}").${savedPaths.length > 0 ? `
|
|
55641
|
+
Saved to:
|
|
55642
|
+
${savedPaths.join("\n")}` : ""}` },
|
|
55643
|
+
...images
|
|
55644
|
+
];
|
|
55642
55645
|
return { content };
|
|
55643
55646
|
}
|
|
55644
55647
|
if (name === "generate_video") {
|