Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(env_keys): exclude internal streaming tuning vars from documentation checks

nuernber321779138ef7
diff --git a/tests/documentation_tests/test_env_keys.py b/tests/documentation_tests/test_env_keys.py
index b91c404b2eb..3652378503e 100644
--- a/tests/documentation_tests/test_env_keys.py
+++ b/tests/documentation_tests/test_env_keys.py
@@ -33,6 +33,13 @@ EXCLUDED_ROLLOUT_FLAGS = {
"LITELLM_RUST",
}
+# Internal infrastructure tuning parameters for streaming/queue management
+# These are advanced settings with sensible defaults that most users should not modify
+EXCLUDED_INTERNAL_TUNING_VARS = {
+ "ANTHROPIC_MESSAGES_MAX_DETACHED_STREAM_DRAINS",
+ "ANTHROPIC_MESSAGES_STREAM_RELAY_QUEUE_MAXSIZE",
+}
+
EXCLUDED_TERMINAL_VARS = {
"TERM",
"TERM_PROGRAM",
@@ -50,7 +57,9 @@ EXCLUDED_TERMINAL_VARS = {
"ALACRITTY_SOCKET",
}
-EXCLUDED_KEYS = frozenset(EXCLUDED_TERMINAL_VARS | EXCLUDED_GUARD_ONLY_VARS | EXCLUDED_ROLLOUT_FLAGS)
+EXCLUDED_KEYS = frozenset(
+ EXCLUDED_TERMINAL_VARS | EXCLUDED_GUARD_ONLY_VARS | EXCLUDED_ROLLOUT_FLAGS | EXCLUDED_INTERNAL_TUNING_VARS
+)
# Directories to skip (dependencies, venvs, caches) - only scan litellm source
SKIP_DIRS = {