Skip to content

Commit

Permalink
Add: Claude 3.7 model (set as default)
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Feb 24, 2025
1 parent bcc3119 commit 766c786
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/commonMain/kotlin/Models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ interface AnthropicModel {
val maxOutput: Int
val messageBatchesApi: Boolean
val cost: Cost

}

val ANTHROPIC_TOKEN_COST_RATIO = Money.Ratio("0.000001")
Expand All @@ -52,6 +51,28 @@ enum class Model(
override val cost: Cost
) : AnthropicModel {

CLAUDE_3_7_SONNET(
id = "claude-3-7-sonnet-latest",
contextWindow = 200000,
maxOutput = 8182,
messageBatchesApi = true,
cost = Cost(
inputTokens = "3".dollarsPerMillion,
outputTokens = "15".dollarsPerMillion
)
),

CLAUDE_3_7_SONNET_20250219(
id = "claude-3-7-sonnet-20250219",
contextWindow = 200000,
maxOutput = 8182,
messageBatchesApi = true,
cost = Cost(
inputTokens = "3".dollarsPerMillion,
outputTokens = "15".dollarsPerMillion
)
),

CLAUDE_3_5_SONNET(
id = "claude-3-5-sonnet-latest",
contextWindow = 200000,
Expand Down Expand Up @@ -153,7 +174,7 @@ enum class Model(

companion object {

val DEFAULT: Model = CLAUDE_3_5_SONNET
val DEFAULT: Model = CLAUDE_3_7_SONNET

}

Expand Down

0 comments on commit 766c786

Please sign in to comment.