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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Server configuration:

Model name prefixes determine routing:
- **OpenAI**: gpt-4.1, gpt-5, gpt-5-mini, gpt-5.2, o4-mini
- **Anthropic**: claude-sonnet-4-0/4-5/4-6, claude-haiku-4-5, claude-opus-4-5/4-6, claude-3-7-sonnet, claude-3-5-haiku
- **Anthropic**: claude-sonnet-4-0/4-5/4-6, claude-haiku-4-5, claude-opus-4-5/4-6/4-7/4-8, claude-fable-5, claude-3-7-sonnet, claude-3-5-haiku
- **Google**: gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-3-pro-preview, gemini-3-flash-preview, gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3.5-flash; image generation: gemini-2.5-flash-image, gemini-3.1-flash-image
- **xAI**: grok-2, grok-3, grok-3-mini, grok-4, grok-4-fast, grok-4-1-fast; image generation: grok-2-image
- **ByteDance** (BytePlus ModelArk, OpenAI-compatible, ap-southeast): seed-1.6, seed-1.8, seed-2.0-lite; image generation: seedream-4.0
Expand Down
11 changes: 11 additions & 0 deletions tee_gateway/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ class SupportedModel(Enum):
output_price_usd=Decimal("0.000025"),
supports_temperature=False,
)
# Claude Fable 5 — Anthropic's most capable widely released model (GA on the
# first-party API from 2026-06-09). Adaptive-thinking-only; like Opus 4.7+ it
# rejects `temperature` (HTTP 400), so supports_temperature=False.
CLAUDE_FABLE_5 = ModelConfig(
provider="anthropic",
api_name="claude-fable-5",
input_price_usd=Decimal("0.00001"),
output_price_usd=Decimal("0.00005"),
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 @@ -418,6 +428,7 @@ class SupportedModel(Enum):
"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,
"claude-fable-5": SupportedModel.CLAUDE_FABLE_5,
# Google
"gemini-2.5-flash": SupportedModel.GEMINI_2_5_FLASH,
"gemini-2.5-pro": SupportedModel.GEMINI_2_5_PRO,
Expand Down
9 changes: 9 additions & 0 deletions tests/test_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ def test_claude_opus_4_8_resolves(self):
# Opus 4.7+ rejects the `temperature` field (HTTP 400)
self.assertFalse(cfg.supports_temperature)

def test_claude_fable_5_resolves(self):
cfg = get_model_config("claude-fable-5")
self.assertEqual(cfg.provider, "anthropic")
self.assertEqual(cfg.api_name, "claude-fable-5")
self.assertEqual(cfg.input_price_usd, Decimal("0.00001"))
self.assertEqual(cfg.output_price_usd, Decimal("0.00005"))
# Adaptive-thinking-only; rejects the `temperature` field (HTTP 400)
self.assertFalse(cfg.supports_temperature)

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

def test_gpt_4_1_resolves(self):
Expand Down
Loading