feat: Gemini 图片生成返回全尺寸原图

将图片 URL 后缀从 =s1024-rj(最大 1024px 宽度缩略图)改为 =d-I(全尺寸原图),
获取更高质量的生成图片。
This commit is contained in:
daidai
2026-04-05 00:09:09 +08:00
Unverified
parent 7f5f0816ec
commit 5b1c2f1123
+2 -2
View File
@@ -175,8 +175,8 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
return { error: errorMsg };
}
// 取第一张图片,追加 =s1024-rj 获取高分辨率
const imageUrl = imageUrls[0] + '=s1024-rj';
// 取第一张图片,追加 =d-I 获取全尺寸原图(而非 =s1024-rj 的缩略图)
const imageUrl = imageUrls[0] + '=d-I';
logger.info('适配器', `找到 ${imageUrls.length} 张图片,开始下载...`, meta);
// 提取图片生成的详细描述(thinking)