fix: model_token_limit catch-all returns None for unknown models

Restores the fix from @Offwhite-Del that was lost during rebase.
Unknown models now return None so preflight skips the context-window
check and lets the API enforce its own limits.
This commit is contained in:
TheArchitectit authored and clawdbot committed 2026-10-12 23:01:12 +00:00
1 parent 1e96b1643a
commit c6820b8f2f
1 file changed
+2
+2
View File
@@ -701,6 +701,8 @@ pub fn model_token_limit(model: &str) -> Option<ModelTokenLimit> {
max_output_tokens: 8_192,
context_window_tokens: 131_072,
}),
// Unknown models return None so preflight skips the context-window
// check and lets the API enforce its own limits.
_ => None,
}
}