This commit is contained in:
Nicolas Patry 2024-12-16 10:34:50 +01:00 committed by GitHub
parent 1708865fdc
commit 6f0b8c947d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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