fix: update image size format and expand available options in tti.py

This commit is contained in:
wxg0103 2025-07-15 09:23:50 +08:00
parent a7fd1ac650
commit cef7075382

View File

@ -15,15 +15,18 @@ class VolcanicEngineTTIModelGeneralParams(BaseForm):
TooltipLabel(_('Image size'),
_('If the gap between width, height and 512 is too large, the picture rendering effect will be poor and the probability of excessive delay will increase significantly. Recommended ratio and corresponding width and height before super score: width*height')),
required=True,
default_value='512*512',
default_value='512x512',
option_list=[
{'value': '512*512', 'label': '512*512'},
{'value': '512*384', 'label': '512*384'},
{'value': '384*512', 'label': '384*512'},
{'value': '512*341', 'label': '512*341'},
{'value': '341*512', 'label': '341*512'},
{'value': '512*288', 'label': '512*288'},
{'value': '288*512', 'label': '288*512'},
{'label': '512x512', 'value': '512x512'},
{'label': '1024x1024', 'value': '1024x1024'},
{'label': '864x1152', 'value': '864x1152'},
{'label': '1152x864', 'value': '1152x864'},
{'label': '1280x720', 'value': '1280x720'},
{'label': '720x1280', 'value': '720x1280'},
{'label': '832x1248', 'value': '832x1248'},
{'label': '1248x832', 'value': '1248x832'},
{'label': '1512x648', 'value': '1512x648'},
],
text_field='label',
value_field='value')