Release v0.4.3 — fix kling-v3-omni v2v/v2v-edit video param schema - #3
Merged
Merged
Conversation
…ter schema `video` is a string URL, not a JSON array of objects, per the upstream mule-router pydantic schema (openapi YAML at src/aag/mule-router/docs/api/kling/v3-omni-reference-video-to-video.yaml and v3-omni-video-to-video-edit.yaml). Old shape was rejected with error_code 2001 "expected Input should be a valid string". For both endpoints: - video: array -> string - add keep_audio: boolean (default false) v2v only: - remove first_frame / last_frame (upstream additionalProperties:false rejects) - note in description: aspect_ratio must be set explicitly when no first_frame is given (runtime requirement, not in openapi) Verified end-to-end against api.mulerouter.ai (tasks 56ec9e50 and 09439f64 produced real mp4 outputs). Regression now 33/34 (vs 25/34). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream
ReferenceVideoToVideoRequestandVideoToVideoEditRequestschemas (mule-run src/aag/mule-router/docs/api/kling/v3-omni-reference-video-to-video.yaml and v3-omni-video-to-video-edit.yaml) declarevideoas a single URL string andkeep_audioas a boolean. The CLI definedvideoas an array of{video_url, refer_type, keep_original_sound}objects and exposedfirst_frame/last_frameparameters that upstream rejects viaadditionalProperties: false. As a result every invocation of either endpoint failed at mule-router's pydantic layer witherror_code 2001 "'video' expected Input should be a valid string".Align both endpoints with the upstream schema:
video: array → string (URL)keep_audio: boolean(defaultfalse)first_frame/last_frameaspect_ratiomust be set explicitly when nofirst_frameis given. The openapi marks it optional with auto-infer, but generation fails at runtime with4002 "Aspect ratio must be specified when no first image and not video editing".Verified end-to-end against
api.mulerouter.ai:video=<url>+keep_audio=false+aspect_ratio=16:9+mode=std+duration=5→ task56ec9e50…producedresult_00.mp4video=<url>+keep_audio=true+mode=std→ task09439f64…producedresult_00.mp4error_code 2001immediately, confirming no downstream rescue pathRe-ran the full 34-endpoint regression on
mulerouter.aiwith the patched CLI binary: pass rate goes from 25/34 (pre-fix) to 33/34 (post-fix), with the remaining failure being an environmentalopenai/gpt-image-2/generationupstream slowness that also failed on 0.4.2.Bump
@mulerouter/coreandmulerouterto 0.4.3 (publish workflow verifies versions match).Reported by: github-mulerouter-skill harness session 65f136d7.