From c49fb1dd9d17e4a3b7c99b62662f9e33dad43c42 Mon Sep 17 00:00:00 2001 From: yassin Date: Tue, 15 Sep 2026 21:58:35 +0000 Subject: [PATCH] fix(openai): drop env var read for openai_system_messages_first, config and Admin UI set it Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index 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 = False disable_vertex_batch_output_transformation: bool = False extra_spend_tag_headers: Optional[List[str]] = None in_memory_llm_clients_cache: "LLMClientCache"