mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-29 08:56:44 +00:00
Merge pull request #3014 from wangguan1995/fix_qwen
Add Qwen model token limits for DashScope compatibility
This commit is contained in:
0
rust/Cargo.lock
generated
Normal file → Executable file
0
rust/Cargo.lock
generated
Normal file → Executable file
@@ -640,6 +640,14 @@ pub fn model_token_limit(model: &str) -> Option<ModelTokenLimit> {
|
|||||||
max_output_tokens: 16_384,
|
max_output_tokens: 16_384,
|
||||||
context_window_tokens: 256_000,
|
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,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user