Skip to main content

context_window_for_model

Function context_window_for_model 

Source
pub fn context_window_for_model(model: &str) -> Option<u32>
Expand description

Map known models to their approximate context window sizes.

Exact catalog and recognized model facts take precedence. Otherwise an explicit _Nk suffix supplies an unverified hint for self-hosted models. Unrecognized DeepSeek family names remain unknown.