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(bedrock_mantle): cover gpt-oss-safeguard-20b input and output rates

mateo528f3ae01611
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 92c012d339c..b3eec97058a 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
@@ -700,6 +700,14 @@ class TestBedrockMantlePricing:
assert info["input_cost_per_token"] == pytest.approx(7e-8)
assert info["output_cost_per_token"] == pytest.approx(3e-7)
+ def test_gpt_oss_safeguard_20b_pricing(self, monkeypatch):
+ monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "true")
+ litellm.add_known_models()
+ info = litellm.get_model_info("bedrock_mantle/openai.gpt-oss-safeguard-20b")
+ # Bedrock pricing: $0.07/M input, $0.20/M output
+ assert info["input_cost_per_token"] == pytest.approx(7e-8)
+ assert info["output_cost_per_token"] == pytest.approx(2e-7)
+
def test_pricing_significantly_cheaper_than_openai_native(self, monkeypatch):
"""
Verify Bedrock Mantle pricing is cheaper than OpenAI's direct API pricing.