[Docs]fix sampling docs (#3113)

* fix sampling docs

* fix sampling docs

* update
This commit is contained in:
Sunny-bot1
2025-08-11 20:42:27 +08:00
committed by GitHub
parent 8bf96217b4
commit 789dc67ff7
6 changed files with 14 additions and 8 deletions
+3
View File
@@ -137,6 +137,9 @@ 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).