Function fetch_context_window
pub async fn fetch_context_window(
provider_type: &str,
config: &ModelProviderConfig,
) -> Option<usize>Expand description
Attempt to fetch context window from provider’s /models endpoint.
Returns None on any failure (network, parsing, missing field) — caller uses fallback.