Skip to main content

fetch_litellm

Function fetch_litellm 

Source
pub async fn fetch_litellm() -> Option<String>
Expand description

Fetch the raw LiteLLM pricing file. Honours an ambient HTTPS_PROXY first, then retries once directly so a dead proxy doesn’t block the fetch. None on any network failure (the caller keeps the last-good cache).