Merge pull request #3014 from wangguan1995/fix_qwen

Add Qwen model token limits for DashScope compatibility
This commit is contained in:
YeonGyu-Kim
2026-05-25 12:58:59 +09:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

0
rust/Cargo.lock generated Normal file → Executable file
View File

View File

@@ -640,6 +640,14 @@ pub fn model_token_limit(model: &str) -> Option<ModelTokenLimit> {
max_output_tokens: 16_384,
context_window_tokens: 256_000,
}),
"qwen-max" => Some(ModelTokenLimit {
max_output_tokens: 8_192,
context_window_tokens: 131_072,
}),
"qwen-plus" => Some(ModelTokenLimit {
max_output_tokens: 8_192,
context_window_tokens: 131_072,
}),
_ => None,
}
}