Thanks to visit codestin.com
Credit goes to github.com

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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ describe("anthropicKnownModels", () => {
(knownModel) => knownModel.modelIdentifier,
),
).toEqual([
"claude-fable-5",
"claude-mythos-5",
"claude-opus-4-8",
"claude-opus-4-7",
"claude-opus-4-6",
Expand All @@ -33,6 +35,8 @@ describe("anthropicKnownModels", () => {

it("declares Anthropic reasoning defaults by API support", () => {
for (const modelIdentifier of [
"claude-fable-5",
"claude-mythos-5",
"claude-opus-4-8",
"claude-opus-4-7",
"claude-opus-4-6",
Expand All @@ -59,6 +63,8 @@ describe("anthropicKnownModels", () => {
expect(
anthropicKnownModels.map((knownModel) => knownModel.modelIdentifier),
).toEqual([
"claude-fable-5",
"claude-mythos-5",
"claude-opus-4-8",
"claude-opus-4-7",
"claude-opus-4-6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,54 @@ import type { KnownModel } from "./types";
// catalog and should be reviewed when the catalog is refreshed.
//
// Reasoning configuration is split per model based on Anthropic API support:
// models that support adaptive thinking (Opus 4.8, Opus 4.7, Opus 4.6,
// Sonnet 4.6) carry `reasoningEffort`, which Coder maps to
// models that support adaptive thinking (Fable 5, Mythos 5, Opus 4.8,
// Opus 4.7, Opus 4.6, Sonnet 4.6) carry `reasoningEffort`, which Coder maps to
// `thinking.type: "adaptive"` with the `effort` parameter. Models that do not
// (Haiku 4.5, Sonnet 4.5)
// carry `thinkingBudgetTokens` instead, which Coder maps to the legacy
// `thinking.type: "enabled"` path with `budget_tokens`. Setting `effort` on
// the legacy path produces an "adaptive thinking is not supported on this
// model" HTTP 400 from Anthropic.
export const anthropicKnownModels = [
{
provider: "anthropic",
modelIdentifier: "claude-fable-5",
displayName: "Claude Fable 5",
aliases: [],
contextLimit: 1_000_000,
maxOutputTokens: 128_000,
reasoningEffort: "high",
inputCost: 10,
outputCost: 50,
cacheReadCost: 1,
cacheWriteCost: 12.5,
sourceMetadata: {
sourceName: "models.dev",
sourceRetrievedAt: "2026-07-09",
lastUpdated: "2026-06-09",
},
},
// models.dev does not list claude-mythos-5. Anthropic documents that
// Mythos 5 shares Fable 5's specs and pricing, so this entry mirrors
// the claude-fable-5 models.dev entry.
{
provider: "anthropic",
modelIdentifier: "claude-mythos-5",
displayName: "Claude Mythos 5",
aliases: [],
contextLimit: 1_000_000,
maxOutputTokens: 128_000,
reasoningEffort: "high",
inputCost: 10,
outputCost: 50,
cacheReadCost: 1,
cacheWriteCost: 12.5,
sourceMetadata: {
sourceName: "models.dev",
sourceRetrievedAt: "2026-07-09",
lastUpdated: "2026-06-09",
},
},
{
provider: "anthropic",
modelIdentifier: "claude-opus-4-8",
Expand Down
Loading