按端点选择编辑器生成的 provider_model

generate_editor_image_for_owner 在参考图存在时改用 gpt-image-2.5-sunburst-c(编辑模型)

无参考图生成继续使用 gpt-image-2.5-flare-c,nanobanana 分支沿用自身模型
This commit is contained in:
2026-09-19 13:36:03 +08:00
parent ff4f42d2f2
commit ae257a6ff8
@@ -3190,8 +3190,10 @@ where
model: generation_options.model,
provider_model: if generation_options.model == EDITOR_IMAGE_MODEL_NANOBANANA2 {
generation_options.model
} else {
} else if reference_images.is_empty() {
GPT_IMAGE_2_5_GENERATION_MODEL
} else {
GPT_IMAGE_2_5_EDIT_MODEL
},
prompt: submitted_prompt.as_str(),
negative_prompt,