mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Docs]fix sampling docs (#3113)
* fix sampling docs * fix sampling docs * update
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user