fix(image): force openai mode for gpt-image-2 scripts

This commit is contained in:
zhangheng
2026-05-18 13:55:56 +08:00
parent ed189dd54b
commit 45b6ce2063
4 changed files with 5 additions and 2 deletions

View File

@@ -305,6 +305,7 @@ else:
- 这两个 direct test 会自动忽略 `.env` 里的 `REFERENCE_IMAGE``MASK_IMAGE`,默认走纯生成流程。
- 如果要走 OpenAI-compatible 的 `gpt-image-2` 图生图,运行 `bash scripts/run_openai_gpt_image2_edit.sh`
- 如果要走多图参考生成多图,运行 `bash scripts/run_openai_gpt_image2_multi.sh`
- 这两个 OpenAI 脚本会强制 `IMAGE_REQUEST_STYLE=openai`,不会沿用 `.env` 里的 `apicodex`
- 图生图可通过环境变量传参考图:
`REFERENCE_IMAGE=./input.png`,或 `REFERENCE_IMAGE_URL=https://example.com/input.png`
- 如需 mask可额外传