修改claude code模型的上下文窗口的上限为1M

This commit is contained in:
xintaofei
2026-03-23 23:35:12 +08:00
parent 6a5c0edb2d
commit a4805621f9

View File

@@ -102,9 +102,9 @@ fn claude_context_window_max_tokens_for_model(model: Option<&str>) -> Option<u64
return Some(suffixed_limit);
}
// Claude models default to 200k when no explicit capacity is provided.
// Claude models default to 1M when no explicit capacity is provided.
if model.to_ascii_lowercase().starts_with("claude") {
return Some(200_000);
return Some(1_000_000);
}
None