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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(openai): drop env var read for openai_system_messages_first, config and Admin UI set it
yassinc49fb1dd9d17
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 55e258a2c27..3668e6efb0c 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -343,7 +343,7 @@ _anthropic_prompt_caching_ttl_env: Optional[str] = os.getenv("LITELLM_ANTHROPIC_anthropic_prompt_caching_ttl: Optional[Literal["5m", "1h"]] = ("1h" if _anthropic_prompt_caching_ttl_env == "1h" else "5m" if _anthropic_prompt_caching_ttl_env == "5m" else None)-openai_system_messages_first: bool = os.getenv("LITELLM_OPENAI_SYSTEM_MESSAGES_FIRST", "false").lower() == "true"+openai_system_messages_first: bool = Falsedisable_vertex_batch_output_transformation: bool = Falseextra_spend_tag_headers: Optional[List[str]] = Nonein_memory_llm_clients_cache: "LLMClientCache"