@@ -464,7 +464,8 @@ def async_call( # pylint: disable=arguments-renamed # type: ignore[override] #
464464 if color_palette is not None :
465465 kwargs ["color_palette" ] = color_palette
466466 task_group , f = _get_task_group_and_task (__name__ )
467- inputs , kwargs , task = cls ._get_input (
467+ # pylint: disable=protected-access
468+ inputs , kwargs , task = ImageSynthesis ._get_input (
468469 model ,
469470 prompt ,
470471 negative_prompt ,
@@ -785,6 +786,30 @@ async def sync_call(
785786 Note: This method currently now only supports wan2.2-t2i-flash and wan2.2-t2i-plus. # noqa: E501 # pylint: disable=line-too-long
786787 Using other models will result in an error,More raw image models may be added for use later # pylint: disable=line-too-long
787788 """
789+ if size is not None :
790+ kwargs ["size" ] = size
791+ if n is not None :
792+ kwargs ["n" ] = n
793+ if seed is not None :
794+ kwargs ["seed" ] = seed
795+ if style is not None :
796+ kwargs ["style" ] = style
797+ if ref_strength is not None :
798+ kwargs ["ref_strength" ] = ref_strength
799+ if ref_mode is not None :
800+ kwargs ["ref_mode" ] = ref_mode
801+ if prompt_extend is not None :
802+ kwargs ["prompt_extend" ] = prompt_extend
803+ if watermark is not None :
804+ kwargs ["watermark" ] = watermark
805+ if bbox_list is not None :
806+ kwargs ["bbox_list" ] = bbox_list
807+ if enable_sequential is not None :
808+ kwargs ["enable_sequential" ] = enable_sequential
809+ if thinking_mode is not None :
810+ kwargs ["thinking_mode" ] = thinking_mode
811+ if color_palette is not None :
812+ kwargs ["color_palette" ] = color_palette
788813 task_group , f = _get_task_group_and_task (__name__ )
789814 # pylint: disable=protected-access
790815 inputs , kwargs , task = ImageSynthesis ._get_input (
@@ -886,6 +911,30 @@ async def async_call( # type: ignore[override] # pylint: disable=arguments-ren
886911 DashScopeAPIResponse: The image synthesis
887912 task id in the response.
888913 """
914+ if size is not None :
915+ kwargs ["size" ] = size
916+ if n is not None :
917+ kwargs ["n" ] = n
918+ if seed is not None :
919+ kwargs ["seed" ] = seed
920+ if style is not None :
921+ kwargs ["style" ] = style
922+ if ref_strength is not None :
923+ kwargs ["ref_strength" ] = ref_strength
924+ if ref_mode is not None :
925+ kwargs ["ref_mode" ] = ref_mode
926+ if prompt_extend is not None :
927+ kwargs ["prompt_extend" ] = prompt_extend
928+ if watermark is not None :
929+ kwargs ["watermark" ] = watermark
930+ if bbox_list is not None :
931+ kwargs ["bbox_list" ] = bbox_list
932+ if enable_sequential is not None :
933+ kwargs ["enable_sequential" ] = enable_sequential
934+ if thinking_mode is not None :
935+ kwargs ["thinking_mode" ] = thinking_mode
936+ if color_palette is not None :
937+ kwargs ["color_palette" ] = color_palette
889938 task_group , f = _get_task_group_and_task (__name__ )
890939 # pylint: disable=protected-access
891940 inputs , kwargs , task = ImageSynthesis ._get_input (
0 commit comments