Skip to content

[Docs] add request params#5207

Merged
Jiang-Jia-Jun merged 7 commits intoPaddlePaddle:developfrom
LiqinruiG:develop
Nov 26, 2025
Merged

[Docs] add request params#5207
Jiang-Jia-Jun merged 7 commits intoPaddlePaddle:developfrom
LiqinruiG:develop

Conversation

@LiqinruiG
Copy link
Collaborator

ChatCompletion 请求增加以下参数说明:

include_draft_logprobs: Optional[bool] = False
n: Optional[int] = 1
seed: Optional[int] = Field(default=None, ge=0, le=922337203685477580)
stop: Optional[Union[str, List[str]]] = Field(default_factory=list)
stop_token_ids: Optional[List[int]] = Field(default_factory=list)
logits_processors_args: Optional[Dict] = None
mm_hashes: Optional[list] = None

Completion请求增加以下参数说明:

echo: Optional[bool] = False
n: Optional[int] = 1
seed: Optional[int] = Field(default=None, ge=0, le=922337203685477580)
stop: Optional[Union[str, List[str]]] = Field(default_factory=list)
stream: Optional[bool] = False
stream_options: Optional[StreamOptions] = None
temperature: Optional[float] = None
top_p: Optional[float] = None
response_format: Optional[AnyResponseFormat] = None
user: Optional[str] = None
stop_token_ids: Optional[List[int]] = Field(default_factory=list)
temp_scaled_logprobs: Optional[bool] = False
top_p_normalized_logprobs: Optional[bool] = False
include_draft_logprobs: Optional[bool] = False
logits_processors_args: Optional[Dict] = None
mm_hashes: Optional[list] = None

@paddle-bot
Copy link

paddle-bot bot commented Nov 25, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Nov 25, 2025
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ liqinrui
❌ LiqinruiG


liqinrui seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@95b3931). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5207   +/-   ##
==========================================
  Coverage           ?   59.73%           
==========================================
  Files              ?      317           
  Lines              ?    38684           
  Branches           ?     5813           
==========================================
  Hits               ?    23109           
  Misses             ?    13745           
  Partials           ?     1830           
Flag Coverage Δ
GPU 59.73% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit df427ba into PaddlePaddle:develop Nov 26, 2025
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants