mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-07-19 22:30:19 +00:00
New arg. (#2845)
This commit is contained in:
parent
1708865fdc
commit
6f0b8c947d
@ -459,7 +459,7 @@ pub struct CompletionRequest {
|
||||
pub prompt: Prompt,
|
||||
|
||||
/// The maximum number of tokens that can be generated in the chat completion.
|
||||
#[serde(default)]
|
||||
#[serde(default, alias = "max_completion_tokens")]
|
||||
#[schema(default = "1024", example = "32")]
|
||||
pub max_tokens: Option<u32>,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user