test(bedrock_mantle): cover gpt-oss-safeguard-20b input and output rates

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-09-05 13:46:46 +00:00
parent bbf51146ca
commit 528f3ae016

View file

@ -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.