From 20cc76f8d69c3d82b4656249d08b842fba1b8a41 Mon Sep 17 00:00:00 2001 From: shivam Date: Thu, 23 Apr 2026 18:41:15 -0700 Subject: [PATCH] fix(bedrock): add missing BEDROCK_MIN_THINKING_BUDGET_TOKENS constant to constants.py Constant exists in main but was missing from this stable branch, causing ImportError when Bedrock Anthropic Messages config was loaded. Co-Authored-By: Claude Sonnet 4.6 --- litellm/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/constants.py b/litellm/constants.py index 7dcf6f7ed77..2658a8efe2c 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -319,6 +319,9 @@ NON_LLM_CONNECTION_TIMEOUT = int( MAX_EXCEPTION_MESSAGE_LENGTH = int(os.getenv("MAX_EXCEPTION_MESSAGE_LENGTH", 2000)) MAX_STRING_LENGTH_PROMPT_IN_DB = int(os.getenv("MAX_STRING_LENGTH_PROMPT_IN_DB", 2048)) BEDROCK_MAX_POLICY_SIZE = int(os.getenv("BEDROCK_MAX_POLICY_SIZE", 75)) +BEDROCK_MIN_THINKING_BUDGET_TOKENS = int( + os.getenv("BEDROCK_MIN_THINKING_BUDGET_TOKENS", 1024) +) REPLICATE_POLLING_DELAY_SECONDS = float( os.getenv("REPLICATE_POLLING_DELAY_SECONDS", 0.5) )