Skip to content

Commit d7dce3e

Browse files
cooconclaude
andcommitted
feat: recognize Fable/Mythos model families with 1M context window
Claude Fable 5 / Mythos 5 (claude-fable-5, claude-mythos-5) are not matched by any built-in family, so the context window falls back to the 200k default while these models ship with a 1M-token context window by default (no [1m] suffix in the model ID to trigger the context modifier). Add fable/mythos built-in families with a 1_000_000 limit, reusing the existing version-extraction regex (claude-fable-5 -> "Fable 5"). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a73b166 commit d7dce3e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/config/models.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ impl ModelConfig {
102102
BuiltinModelFamily::new("sonnet", "Sonnet", 200_000),
103103
BuiltinModelFamily::new("opus", "Opus", 200_000),
104104
BuiltinModelFamily::new("haiku", "Haiku", 200_000),
105+
// Mythos-class models (Fable 5 / Mythos 5) ship with a 1M-token
106+
// context window by default (no beta header / [1m] suffix required)
107+
BuiltinModelFamily::new("fable", "Fable", 1_000_000),
108+
BuiltinModelFamily::new("mythos", "Mythos", 1_000_000),
105109
]
106110
})
107111
}
@@ -257,7 +261,7 @@ impl ModelConfig {
257261
# This file defines model display names and context limits for different LLM models\n\
258262
# File location: ~/.claude/ccline/models.toml\n\
259263
#\n\
260-
# Claude models are automatically recognized (Sonnet, Opus, Haiku) with\n\
264+
# Claude models are automatically recognized (Sonnet, Opus, Haiku, Fable, Mythos) with\n\
261265
# version extraction. You only need to add entries here for overrides or\n\
262266
# third-party models.\n\
263267
\n\
@@ -296,7 +300,7 @@ impl Default for ModelConfig {
296300
fn default() -> Self {
297301
Self {
298302
// Only third-party models need explicit entries.
299-
// Claude models (Sonnet, Opus, Haiku) are handled by built-in regex families.
303+
// Claude models (Sonnet, Opus, Haiku, Fable, Mythos) are handled by built-in regex families.
300304
model_entries: vec![
301305
ModelEntry {
302306
pattern: "glm-4.5".to_string(),

0 commit comments

Comments
 (0)