mirror of
https://github.com/instructkr/claw-code.git
synced 2026-05-18 21:41:26 +08:00
Cap OpenAI default output tokens using model metadata
This commit is contained in:
@@ -148,11 +148,7 @@ impl ModelProvenance {
|
||||
}
|
||||
|
||||
fn max_tokens_for_model(model: &str) -> u32 {
|
||||
if model.contains("opus") {
|
||||
32_000
|
||||
} else {
|
||||
64_000
|
||||
}
|
||||
api::max_tokens_for_model(model)
|
||||
}
|
||||
// Build-time constants injected by build.rs (fall back to static values when
|
||||
// build.rs hasn't run, e.g. in doc-test or unusual toolchain environments).
|
||||
|
||||
Reference in New Issue
Block a user