We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
generate_audio
1 parent a2f60ea commit 68677b7Copy full SHA for 68677b7
1 file changed
veadk/tools/builtin_tools/video_generate.py
@@ -133,12 +133,10 @@ def _get_headers() -> dict:
133
def _should_disable_audio(
134
model_name: str, generate_audio: Optional[bool]
135
) -> Optional[bool]:
136
- if generate_audio is False:
137
- return None
138
- if model_name.startswith("doubao-seedance-1-0") and generate_audio:
+ if model_name.startswith("doubao-seedance-1-0") and generate_audio is not None:
139
logger.warning(
140
"The `doubao-seedance-1-0` series models do not support enabling the audio field. "
141
- "Please upgrade to the doubao-seedance-1-5 series if you want to generate video with audio."
+ "Please upgrade to the doubao-seedance-1-5 series or higher if you want to generate video with audio."
142
)
143
return None
144
return generate_audio
0 commit comments