mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[Docs]fix sampling docs 2.1 (#3333)
* [Docs]fix sampling docs (#3113) * fix sampling docs * fix sampling docs * update * fix docs
This commit is contained in:
@@ -98,7 +98,7 @@ curl -X POST "http://0.0.0.0:9222/v1/chat/completions" \
|
||||
{"role": "user", "content": "How old are you"}
|
||||
],
|
||||
"top_p": 0.8,
|
||||
"top_k": 50
|
||||
"top_k": 20
|
||||
}'
|
||||
```
|
||||
|
||||
@@ -117,7 +117,7 @@ response = client.chat.completions.create(
|
||||
],
|
||||
stream=True,
|
||||
top_p=0.8,
|
||||
top_k=50
|
||||
extra_body={"top_k": 20, "min_p":0.1}
|
||||
)
|
||||
for chunk in response:
|
||||
if chunk.choices[0].delta:
|
||||
@@ -159,8 +159,7 @@ response = client.chat.completions.create(
|
||||
],
|
||||
stream=True,
|
||||
top_p=0.8,
|
||||
top_k=20,
|
||||
min_p=0.1
|
||||
extra_body={"top_k": 20, "min_p":0.1}
|
||||
)
|
||||
for chunk in response:
|
||||
if chunk.choices[0].delta:
|
||||
|
Reference in New Issue
Block a user