[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:
Sunny-bot1
2025-08-11 21:04:10 +08:00
committed by GitHub
parent a33e557732
commit 2fe31c6f0f
4 changed files with 8 additions and 8 deletions

View File

@@ -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: