Added support for Seedance Audio#319
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@runware/base.py`:
- Around line 3434-3448: Normalize requestAudio.inputs to an IAudioInputs
instance before any attribute access in the audio preprocessing block. Update
the logic around the requestAudio.inputs checks so it mirrors the
_imageInference handling pattern: if inputs is a dict, convert it first, then
run the referenceAudios, referenceImages, and referenceVoices processing on the
normalized object. Make sure the referenceVoices loop still reaches each
IAudioReferenceVoice entry and preprocesses ref.audio after normalization.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: c3faba17-80b6-4a01-8098-ffb4b0da6354
📒 Files selected for processing (2)
runware/base.pyrunware/types.py
Added
IAudioInputsnow includes:referenceAudios: Optional[List[str]]referenceImages: Optional[List[str]]Changed
audioInferencenow processesinputs.referenceAudios,inputs.referenceImages, andinputs.referenceVoices[].audiovia_process_mediabefore sending the request