fix(image): support stream and moderation options
This commit is contained in:
@@ -16,6 +16,13 @@ for name in \
|
||||
IMAGE_QUALITY \
|
||||
IMAGE_N \
|
||||
OUTPUT_FILE \
|
||||
IMAGE_BACKGROUND \
|
||||
IMAGE_INPUT_FIDELITY \
|
||||
IMAGE_OUTPUT_FORMAT \
|
||||
IMAGE_OUTPUT_COMPRESSION \
|
||||
IMAGE_MODERATION \
|
||||
IMAGE_STREAM \
|
||||
IMAGE_PARTIAL_IMAGES \
|
||||
REFERENCE_IMAGE \
|
||||
REFERENCE_IMAGE_FILE \
|
||||
REFERENCE_IMAGE_URL \
|
||||
@@ -66,6 +73,8 @@ export IMAGE_REQUEST_TIMEOUT="${IMAGE_REQUEST_TIMEOUT:-900}"
|
||||
export IMAGE_MAX_POLL_WAIT="${IMAGE_MAX_POLL_WAIT:-1800}"
|
||||
export IMAGE_INITIAL_POLL_DELAY="${IMAGE_INITIAL_POLL_DELAY:-10}"
|
||||
export IMAGE_POLL_INTERVAL="${IMAGE_POLL_INTERVAL:-5}"
|
||||
export IMAGE_STREAM="${IMAGE_STREAM:-true}"
|
||||
export IMAGE_PARTIAL_IMAGES="${IMAGE_PARTIAL_IMAGES:-1}"
|
||||
export IMAGE_PROMPT="${IMAGE_PROMPT:-A realistic Figma design board screenshot for a digital transformation system, with a left layers panel, center canvas of nested frames and components, and right properties panel. Enterprise product design, Chinese labels, visible grid, alignment guides, annotations, components, variants, spacing notes, dashboard cards, workflow timeline, and system modules. Clean blue-gray palette, crisp typography, premium product design presentation, highly organized layered structure, realistic Figma workspace aesthetic.}"
|
||||
|
||||
python3 gpt_image2_generate.py "$@"
|
||||
|
||||
Reference in New Issue
Block a user