Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix/add miss wan27 params#196

Merged
xiong-binbin merged 3 commits intodashscope:maindashscope/dashscope-sdk-java:mainfrom
mose-x:fix/add_miss_wan27_paramsmose-x/dashscope-sdk-java:fix/add_miss_wan27_paramsCopy head branch name to clipboard
Mar 13, 2026
Merged

Fix/add miss wan27 params#196
xiong-binbin merged 3 commits intodashscope:maindashscope/dashscope-sdk-java:mainfrom
mose-x:fix/add_miss_wan27_paramsmose-x/dashscope-sdk-java:fix/add_miss_wan27_paramsCopy head branch name to clipboard

Conversation

@mose-zm
Copy link
Contributor

@mose-zm mose-zm commented Mar 12, 2026

No description provided.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the video synthesis functionality by introducing a new parameter to control audio handling. It provides more granular control over whether the generated video should include automatic audio, retain original audio, or have no audio, thereby increasing the flexibility and customization options for users.

Highlights

  • New Audio Setting Options: Introduced an AudioSetting inner class within VideoSynthesis to define available audio handling options: AUTO, ORIGIN, and NO_AUDIO.
  • Audio Setting Parameter: Added a new audioSetting field to VideoSynthesisParam to allow users to specify how audio should be handled during video synthesis.
  • API Keyword Definition: Defined AUDIO_SETTING as a new constant in ApiKeywords for consistent parameter naming across the API.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/com/alibaba/dashscope/aigc/videosynthesis/VideoSynthesis.java
    • Added a new inner class AudioSetting with constants AUTO, ORIGIN, and NO_AUDIO.
  • src/main/java/com/alibaba/dashscope/aigc/videosynthesis/VideoSynthesisParam.java
    • Added a new private field audioSetting with a default null value.
    • Modified the getParameters method to include audioSetting in the returned map if it is not null.
  • src/main/java/com/alibaba/dashscope/utils/ApiKeywords.java
    • Added a new public static final String constant AUDIO_SETTING.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new audioSetting parameter for video synthesis. The implementation is straightforward and aligns with the existing code structure. I have one suggestion to enhance the validation for the new parameter to avoid sending empty strings to the API. I also recommend adding unit tests for this new functionality to ensure it works as expected and to cover it against future changes.

Comment on lines +235 to +237
if (audioSetting != null) {
params.put(AUDIO_SETTING, audioSetting);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It's a good practice to also check if audioSetting is not an empty string before adding it to the parameters. This prevents sending potentially invalid empty values to the API. This is also consistent with how other string parameters like prompt are handled in getInput().

Suggested change
if (audioSetting != null) {
params.put(AUDIO_SETTING, audioSetting);
}
if (audioSetting != null && !audioSetting.isEmpty()) {
params.put(AUDIO_SETTING, audioSetting);
}

@xiong-binbin xiong-binbin merged commit 6553761 into dashscope:main Mar 13, 2026
3 checks passed
@mose-zm mose-zm deleted the fix/add_miss_wan27_params branch March 16, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.