Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tee_gateway/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ class SupportedModel(Enum):
output_price_usd=Decimal("0.000025"),
supports_temperature=False,
)
CLAUDE_OPUS_4_8 = ModelConfig(
provider="anthropic",
api_name="claude-opus-4-8",
input_price_usd=Decimal("0.000005"),
output_price_usd=Decimal("0.000025"),
supports_temperature=False,
)

# ── Google Gemini ───────────────────────────────────────────────────
# Note: gemini-2.5-flash, gemini-2.5-pro, and gemini-2.5-flash-lite are scheduled
Expand Down Expand Up @@ -293,6 +300,7 @@ class SupportedModel(Enum):
"claude-opus-4-5": SupportedModel.CLAUDE_OPUS_4_5,
"claude-opus-4-6": SupportedModel.CLAUDE_OPUS_4_6,
"claude-opus-4-7": SupportedModel.CLAUDE_OPUS_4_7,
"claude-opus-4-8": SupportedModel.CLAUDE_OPUS_4_8,
# Google
"gemini-2.5-flash": SupportedModel.GEMINI_2_5_FLASH,
"gemini-2.5-pro": SupportedModel.GEMINI_2_5_PRO,
Expand Down
8 changes: 8 additions & 0 deletions tests/test_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ def test_claude_opus_4_6_resolves(self):
cfg = get_model_config("claude-opus-4-6")
self.assertEqual(cfg.provider, "anthropic")

def test_claude_opus_4_8_resolves(self):
cfg = get_model_config("claude-opus-4-8")
self.assertEqual(cfg.provider, "anthropic")
self.assertEqual(cfg.input_price_usd, Decimal("0.000005"))
self.assertEqual(cfg.output_price_usd, Decimal("0.000025"))
# Opus 4.7+ rejects the `temperature` field (HTTP 400)
self.assertFalse(cfg.supports_temperature)

# ── OpenAI ──────────────────────────────────────────────────────────────

def test_gpt_4_1_resolves(self):
Expand Down
Loading