From bff1fa4edae7937d8172b933ed31dd1409c3be6b Mon Sep 17 00:00:00 2001 From: KevinZhao Date: Thu, 18 Jun 2026 15:24:25 +0800 Subject: [PATCH] docs: document LITELLM_ENABLE_HTTP2 and HTTP/2 pool env vars Register LITELLM_ENABLE_HTTP2, LITELLM_HTTP2_MAX_CONNECTIONS and LITELLM_HTTP2_MAX_KEEPALIVE_CONNECTIONS in the environment variables reference table so the documentation_tests/test_env_keys.py doc-lint (run in BerriAI/litellm CI) passes for the outbound HTTP/2 feature (BerriAI/litellm#30370). --- docs/proxy/config_settings.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/proxy/config_settings.md b/docs/proxy/config_settings.md index 407208d1..8010308a 100644 --- a/docs/proxy/config_settings.md +++ b/docs/proxy/config_settings.md @@ -910,6 +910,9 @@ router_settings: | LITELLM_FAVICON_URL | Custom URL for the LiteLLM UI favicon. When set, overrides the default favicon | LITELLM_GLOBAL_MAX_PARALLEL_REQUEST_RETRIES | Maximum retries for parallel requests in LiteLLM | LITELLM_GLOBAL_MAX_PARALLEL_REQUEST_RETRY_TIMEOUT | Timeout for retries of parallel requests in LiteLLM +| LITELLM_ENABLE_HTTP2 | If true, enables opt-in HTTP/2 for outbound requests to upstream LLM providers. Default is false (HTTP/1.1). Can also be set via `litellm.enable_http2` or `litellm_settings.enable_http2` in config.yaml. See [HTTP/2 support](./config_settings). +| LITELLM_HTTP2_MAX_CONNECTIONS | Optional integer. Maximum number of connections in the HTTP/2 client pool. Only applies when HTTP/2 is enabled. Defaults to httpx defaults when unset. Can also be set via `litellm.http2_max_connections`. +| LITELLM_HTTP2_MAX_KEEPALIVE_CONNECTIONS | Optional integer. Maximum number of keep-alive connections in the HTTP/2 client pool. Only applies when HTTP/2 is enabled. Defaults to httpx defaults when unset. Can also be set via `litellm.http2_max_keepalive_connections`. | LITELLM_DISABLE_LAZY_LOADING | When set to "1", "true", "yes", or "on", disables lazy loading of attributes (currently only affects encoding/tiktoken). This ensures encoding is initialized before VCR starts recording HTTP requests, fixing VCR cassette creation issues. See [issue #18659](https://github.com/BerriAI/litellm/issues/18659) | LITELLM_DISABLE_REDACT_SECRETS | When set to "true", disables automatic redaction of secrets (API keys, tokens, credentials) from proxy log output. Secret redaction is enabled by default. | LITELLM_MIGRATION_DIR | Custom migrations directory for prisma migrations, used for baselining db in read-only file systems.