[bugfix] Fix unexpected argument 'is_finished' in function llm2code2wav_async_chunk of mimo-audio#1570
Conversation
sync with upstream Signed-off-by: Baoyuan Qi <qibaoyuan@126.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c46d4d80ae
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Fix type hint for pooling_output parameter Signed-off-by: Baoyuan Qi <qibaoyuan@126.com>
| Accumulates codes in connector per request_id, | ||
| returns payload only when chunk_size is full or request is finished; returns None when waiting. | ||
| """ | ||
| finished = bool(is_finished or request.is_finished()) |
There was a problem hiding this comment.
Currently, we use save_async. In high concurrency scenarios, if request.is_finished is used, the output audio may be truncated.
There was a problem hiding this comment.
it means use is_finished directly?
There was a problem hiding this comment.
only use is_finished, test passed.
There was a problem hiding this comment.
it means use
is_finisheddirectly?
it means use
is_finisheddirectly?
yes
Signed-off-by: 齐保元 <qibaoyuan@xiaomi.com>
📝 PR Review FeedbackThank you for fixing this issue! Here are some findings that need attention: 🔴 Critical: Indentation ErrorLocation: if not code_predictor_codes.any():
if is_finished:
return _make_finished_sentinel() # ❌ Wrong indentation!The Suggested fix: if not code_predictor_codes.any():
if is_finished:
return _make_finished_sentinel() # ✅ Correct indentation
return None🟡 Medium Priority Issues
🟢 Suggestions
Conclusion: The fix approach is correct ✅, but there's a critical indentation bug that must be fixed before merging. Review by Claude Code via OpenClaw |
Emmm, it seems that OpenClaw is doing something wrong.
|
|
LGTM |
bug: #1569
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.
Purpose
Fix unexpected argument 'is_finished' in function llm2code2wav_async_chunk of mimo-audio:
(EngineCore_DP0 pid=51408) [Stage-0] ERROR 02-28 16:59:52 [chunk_transfer_adapter.py:213] Failed to use custom_process_input_func for payload extraction: llm2code2wav_async_chunk() got an unexpected keyword argument 'is_finished'Test Plan
serving:
client:
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model. Please runmkdocs serveto sync the documentation editions to./docs.BEFORE SUBMITTING, PLEASE READ https://github.com/vllm-project/vllm-omni/blob/main/CONTRIBUTING.md (anything written below this line will be removed by GitHub Actions)