Skip to content

Commit 960b250

Browse files
committed
Return back sonnet 3
1 parent 0aeff99 commit 960b250

File tree

2 files changed

+18
-1
lines changed
  • koog-ktor/src/commonMain/kotlin/ai/koog/ktor/utils
  • prompt/prompt-executor/prompt-executor-clients/prompt-executor-openrouter-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openrouter

2 files changed

+18
-1
lines changed

koog-ktor/src/commonMain/kotlin/ai/koog/ktor/utils/LLMModelParser.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,11 @@ private val GOOGLE_MODELS_MAP = mapOf(
237237
)
238238

239239
private val OPENROUTER_MODELS_MAP = mapOf(
240-
"claude3sonnet" to OpenRouterModels.Claude3Sonnet,
241240
"claude3haiku" to OpenRouterModels.Claude3Haiku,
241+
"claude3opus" to OpenRouterModels.Claude3Opus,
242+
"claude35sonnet" to OpenRouterModels.Claude3_5Sonnet,
243+
"claude4sonnet" to OpenRouterModels.Claude4Sonnet,
244+
"claude41opus" to OpenRouterModels.Claude4_1Opus,
242245
"gpt4" to OpenRouterModels.GPT4,
243246
"gpt4o" to OpenRouterModels.GPT4o,
244247
"gpt5" to OpenRouterModels.GPT5,

prompt/prompt-executor/prompt-executor-clients/prompt-executor-openrouter-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/openrouter/OpenRouterModels.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ public object OpenRouterModels : LLModelDefinitions {
6262
maxOutputTokens = 4_096,
6363
)
6464

65+
/**
66+
* Represents a predefined language model configuration for the "Claude 3 Sonnet" model.
67+
*
68+
* This variable defines an instance of the `LLModel` class using the `OpenRouter` provider.
69+
* The model is identified with the ID "anthropic/claude-3-sonnet" and supports multimodal capabilities.
70+
*/
71+
public val Claude3Sonnet: LLModel = LLModel(
72+
provider = LLMProvider.OpenRouter,
73+
id = "anthropic/claude-3-sonnet",
74+
capabilities = multimodalCapabilities,
75+
contextLength = 200_000,
76+
maxOutputTokens = 4_096,
77+
)
78+
6579
/**
6680
* Represents the Claude v3 Haiku model provided through the OpenRouter platform.
6781
*

0 commit comments

Comments
 (0)