diff --git a/router/src/lib.rs b/router/src/lib.rs index dbd36827..414d38ed 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -460,7 +460,7 @@ pub struct CompletionRequest { pub prompt: Prompt, /// The maximum number of tokens that can be generated in the chat completion. - #[serde(default, alias = "max_completion_tokens")] + #[serde(default)] #[schema(default = "1024", example = "32")] pub max_tokens: Option, @@ -840,7 +840,7 @@ pub(crate) struct ChatRequest { pub top_logprobs: Option, /// 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,