Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

feat: add Claude Fable 5 support (#4107)

Tao Sun80de6e3b7339
diff --git a/camel/types/enums.py b/camel/types/enums.py
index c166ecbf9..3a2b96cb7 100644
--- a/camel/types/enums.py
+++ b/camel/types/enums.py
@@ -235,6 +235,7 @@ class ModelType(UnifiedModelType, Enum):
CLAUDE_SONNET_4 = "claude-sonnet-4-20250514"
CLAUDE_SONNET_4_6 = "claude-sonnet-4-6"
CLAUDE_HAIKU_4_5 = "claude-haiku-4-5"
+ CLAUDE_FABLE_5 = "claude-fable-5"
CLAUDE_OPUS_4 = "claude-opus-4-20250514"
CLAUDE_OPUS_4_1 = "claude-opus-4-1-20250805"
CLAUDE_OPUS_4_5 = "claude-opus-4-5"
@@ -756,6 +757,7 @@ class ModelType(UnifiedModelType, Enum):
ModelType.CLAUDE_SONNET_4_6,
ModelType.CLAUDE_SONNET_4,
ModelType.CLAUDE_HAIKU_4_5,
+ ModelType.CLAUDE_FABLE_5,
ModelType.CLAUDE_OPUS_4,
ModelType.CLAUDE_OPUS_4_1,
ModelType.CLAUDE_OPUS_4_5,
@@ -1729,6 +1731,7 @@ class ModelType(UnifiedModelType, Enum):
ModelType.CLAUDE_SONNET_4_6,
ModelType.CLAUDE_OPUS_4_7,
ModelType.CLAUDE_OPUS_4_8,
+ ModelType.CLAUDE_FABLE_5,
ModelType.DEEPSEEK_V4_FLASH,
ModelType.DEEPSEEK_V4_PRO,
ModelType.GPT_5_4,
diff --git a/test/models/test_anthropic_model.py b/test/models/test_anthropic_model.py
index 607e30fc4..6d4452489 100644
--- a/test/models/test_anthropic_model.py
+++ b/test/models/test_anthropic_model.py
@@ -44,6 +44,7 @@ class TravelResponse(BaseModel):
ModelType.CLAUDE_OPUS_4_6,
ModelType.CLAUDE_OPUS_4_8,
ModelType.CLAUDE_HAIKU_4_5,
+ ModelType.CLAUDE_FABLE_5,
ModelType.CLAUDE_SONNET_4,
ModelType.CLAUDE_OPUS_4,
ModelType.CLAUDE_OPUS_4_1,
@@ -63,6 +64,12 @@ def test_claude_opus_4_8_metadata():
assert ModelType.CLAUDE_OPUS_4_8.token_limit == 1_000_000
+def test_claude_fable_5_metadata():
+ assert ModelType.CLAUDE_FABLE_5.value == "claude-fable-5"
+ assert ModelType.CLAUDE_FABLE_5.is_anthropic
+ assert ModelType.CLAUDE_FABLE_5.token_limit == 1_000_000
+
+
def test_anthropic_model_uses_provided_token_counter():
class DummyTokenCounter(BaseTokenCounter):
def count_tokens_from_messages(self, messages):