Skip to content

Support cancel in finish-task and payload parameters in multimodal dialog#163

Merged
luk384090-cloud merged 3 commits into
dashscope:mainfrom
songguocola:dev/yaoxian/0714
Jul 15, 2026
Merged

Support cancel in finish-task and payload parameters in multimodal dialog#163
luk384090-cloud merged 3 commits into
dashscope:mainfrom
songguocola:dev/yaoxian/0714

Conversation

@songguocola

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

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 support for a cancel directive in the speech synthesizer's finish request and refactors streaming_cancel to support a timeout when waiting for the task-finished event. It also adds pass_through_params to RequestToRespondParameters in the multimodal request parameters. Feedback on these changes highlights two issues in streaming_cancel: first, the connection is not actually force-closed on timeout if _close_ws_after_use is false, despite the log message claiming so; second, the docstring incorrectly states that a TimeoutError is raised on timeout, whereas only a warning is logged. A code suggestion is provided to resolve these issues.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread dashscope/audio/tts_v2/speech_synthesizer.py
@luk384090-cloud
luk384090-cloud merged commit cd7c7fd into dashscope:main Jul 15, 2026
2 checks passed
@songguocola
songguocola deleted the dev/yaoxian/0714 branch July 21, 2026 06:54
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