Skip to content

Conversation

@Shirley125
Copy link
Contributor

@Shirley125 Shirley125 commented Oct 25, 2025

What this PR does / why we need it?

fix proxy decode bug when parsing non-UTF-8 characters.

Does this PR introduce any user-facing change?

How was this patch tested?

@github-actions
Copy link

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

Copy link
Contributor

@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 aims to fix a crash when decoding stream chunks that are not valid UTF-8. The proposed solution wraps the decoding in a try-except block. While this prevents the crash, it can lead to a corrupted data stream being sent to the client, as partial byte sequences might be yielded. My review includes critical feedback on this approach and suggests a more robust method for handling streaming text decoding to ensure stream integrity.

@Shirley125 Shirley125 changed the title fix proxy decode bug [bugfix][main]fix proxy decode bug Oct 25, 2025
@wangxiyuan wangxiyuan merged commit d8ca7fe into vllm-project:main Oct 27, 2025
16 checks passed
luolun pushed a commit to luolun/vllm-ascend that referenced this pull request Nov 19, 2025
### What this PR does / why we need it?

fix proxy decode bug when parsing non-UTF-8 characters.

- vLLM version: v0.11.0
- vLLM main:
vllm-project/vllm@c9461e0

---------

Signed-off-by: CHEN <[email protected]>
Signed-off-by: luolun <[email protected]>
hwhaokun pushed a commit to hwhaokun/vllm-ascend that referenced this pull request Nov 19, 2025
### What this PR does / why we need it?

fix proxy decode bug when parsing non-UTF-8 characters.

- vLLM version: v0.11.0
- vLLM main:
vllm-project/vllm@c9461e0

---------

Signed-off-by: CHEN <[email protected]>
Signed-off-by: hwhaokun <[email protected]>
NSDie pushed a commit to NSDie/vllm-ascend that referenced this pull request Nov 24, 2025
### What this PR does / why we need it?

fix proxy decode bug when parsing non-UTF-8 characters.

- vLLM version: v0.11.0
- vLLM main:
vllm-project/vllm@c9461e0

---------

Signed-off-by: CHEN <[email protected]>
Signed-off-by: nsdie <[email protected]>
Clorist33 pushed a commit to Clorist33/vllm-ascend that referenced this pull request Dec 10, 2025
### What this PR does / why we need it?

fix proxy decode bug when parsing non-UTF-8 characters.

- vLLM version: v0.11.0
- vLLM main:
vllm-project/vllm@c9461e0

---------

Signed-off-by: CHEN <[email protected]>
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