From 7762cd6bed7f95fa855144e01aa94e932869fe12 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 8 May 2024 13:46:26 +0800 Subject: refactor: model pass_max_tokens (#493) --- src/client/qianwen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/qianwen.rs') diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs index 3fa17e6..7391a38 100644 --- a/src/client/qianwen.rs +++ b/src/client/qianwen.rs @@ -173,7 +173,7 @@ fn build_body(data: SendData, model: &Model, is_vl: bool) -> Result<(Value, bool parameters["incremental_output"] = true.into(); } - if let Some(v) = model.max_output_tokens { + if let Some(v) = model.max_tokens_param() { parameters["max_tokens"] = v.into(); } if let Some(v) = temperature { -- cgit v1.2.3