mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
feat: Gemini 图片生成返回全尺寸原图
将图片 URL 后缀从 =s1024-rj(最大 1024px 宽度缩略图)改为 =d-I(全尺寸原图), 获取更高质量的生成图片。
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user