Skip to content

[FIX 2.1]fix bad_words when sending requests consecutively#3199

Merged
Jiang-Jia-Jun merged 3 commits into
PaddlePaddle:release/2.1from
Sunny-bot1:release-210
Aug 6, 2025
Merged

[FIX 2.1]fix bad_words when sending requests consecutively#3199
Jiang-Jia-Jun merged 3 commits into
PaddlePaddle:release/2.1from
Sunny-bot1:release-210

Conversation

@Sunny-bot1

Copy link
Copy Markdown
Collaborator

存在问题

当不传入bad_words时,则不会更新share_input["bad_tokens"],导致连续发送独立请求时,会出现有的请求“没有传入bad_words但是却复用了上一个请求的bad_words”的情况。

本PR涉及的修改

当不传入bad_words时,更新share_input["bad_tokens"]为默认值;
修改warning log,add_prefix_space的情况用户无需感知。

@paddle-bot

paddle-bot Bot commented Aug 4, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit f672a34 into PaddlePaddle:release/2.1 Aug 6, 2025
11 of 13 checks passed
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.

3 participants