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]

fix(bedrock_mantle): accept verbosity on gpt-5.x chat completions

kerry15c18ad6cdd6
diff --git a/litellm/llms/bedrock_mantle/chat/transformation.py b/litellm/llms/bedrock_mantle/chat/transformation.py
index a1153dffc93..5b69d7aff42 100644
--- a/litellm/llms/bedrock_mantle/chat/transformation.py
+++ b/litellm/llms/bedrock_mantle/chat/transformation.py
@@ -22,6 +22,7 @@ from litellm.llms.bedrock_mantle.common_utils import (
BEDROCK_MANTLE_DEFAULT_REGION,
BedrockMantleAuthMixin,
)
+from litellm.llms.openai.chat.gpt_5_transformation import is_gpt_reasoning_series_name
from litellm.secret_managers.main import get_secret_str
from litellm.types.llms.openai import AllMessageValues
from litellm.types.router import GenericLiteLLMParams
@@ -108,6 +109,8 @@ class BedrockMantleChatConfig(BedrockMantleAuthMixin, OpenAILikeChatConfig):
def get_supported_openai_params(self, model: str) -> list:
base_params: Final = super().get_supported_openai_params(model)
+ if is_gpt_reasoning_series_name(model) and "verbosity" not in base_params:
+ base_params.append("verbosity")
try:
if litellm.supports_reasoning(model=model, custom_llm_provider=self.custom_llm_provider):
if "reasoning_effort" not in base_params:
diff --git a/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_transformation.py b/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_transformation.py
index c948dfb3553..15570eaec4d 100644
--- a/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_transformation.py
+++ b/tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_transformation.py
@@ -257,6 +257,18 @@ class TestBedrockMantleConfig:
assert "temperature" in params
assert "stream" in params
assert "max_tokens" in params
+ assert "verbosity" not in params
+
+ def test_verbosity_passes_through_for_gpt_5_models(self):
+ cfg = BedrockMantleChatConfig()
+ assert "verbosity" in cfg.get_supported_openai_params("openai.gpt-5.6-sol")
+ optional_params = litellm.get_optional_params(
+ model="openai.gpt-5.6-sol",
+ custom_llm_provider="bedrock_mantle",
+ verbosity="low",
+ drop_params=False,
+ )
+ assert optional_params["verbosity"] == "low"
class TestBedrockMantleChatAuth: