Skip to content

[Docs]remove redundent "bad_words" #3332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions docs/online_serving/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ When sending requests using openai.Client, these parameters need to be placed in

The following sampling parameters are supported.
```python
bad_words: Optional[List[int]] = None
# List of forbidden words that the model should avoid generating (default None means no restriction).

top_k: Optional[int] = None
# Limits the consideration to the top K tokens with the highest probability at each generation step, used to control randomness (default None means no limit).

Expand Down
3 changes: 0 additions & 3 deletions docs/zh/online_serving/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ metadata: Optional[dict] = None

额外采样参数的支持如下:
```python
bad_words: Optional[List[str]] = None
# 禁止生成的词汇列表,模型会避免输出这些词(默认 None 表示不限制)。

top_k: Optional[int] = None
# 限制每一步生成时只考虑概率最高的 K 个 token,用于控制随机性(默认 None 表示不限制)。

Expand Down
Loading