summaryrefslogtreecommitdiffstats
path: root/src/client/qianwen.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-05-08 13:46:26 +0800
committerGitHub <noreply@github.com>2024-05-08 13:46:26 +0800
commit7762cd6bed7f95fa855144e01aa94e932869fe12 (patch)
tree66e3d9371f4db081a2ce87e763c5c717c355adfc /src/client/qianwen.rs
parent1c6c740381d0da4bcb70c6531bf93b406b94d9a6 (diff)
downloadaichat-7762cd6bed7f95fa855144e01aa94e932869fe12.tar.gz
refactor: model pass_max_tokens (#493)
Diffstat (limited to 'src/client/qianwen.rs')
-rw-r--r--src/client/qianwen.rs2
1 files changed, 1 insertions, 1 deletions
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 {