按 OpenAI 官方放开 GIF+参考图,SVG 仍仅文生图;有蒙版禁用 GIF/SVG
This commit is contained in:
@@ -210,8 +210,10 @@ def validate_gpt_image_vector_output(
|
||||
fmt = resolve_gpt_image_output_format(model, output_format)
|
||||
if fmt not in GPT_IMAGE_26_EXTRA_OUTPUT_FORMAT_OPTIONS:
|
||||
return
|
||||
if has_images or has_mask:
|
||||
raise ValueError("SVG / GIF 仅支持纯文生图,不能带参考图或蒙版")
|
||||
if fmt == "svg" and (has_images or has_mask):
|
||||
raise ValueError("SVG 仅支持纯文生图,不能带参考图或蒙版")
|
||||
if fmt == "gif" and has_mask:
|
||||
raise ValueError("GIF 输出不支持蒙版")
|
||||
|
||||
|
||||
def is_gpt_image_model(model: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user