Skip to content

Commit 0ac7e35

Browse files
jonnyzzzaozherelyeva
authored andcommitted
Refactor LLAMA model definitions for clarity
The current LLAMA4_SOUT definition points to the LLAMA4, adding LLAMA4_LATEST definition, and updating the SCOUT definition to point to llama4:scout in OLLAMA
1 parent 51596be commit 0ac7e35

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

  • prompt/prompt-executor/prompt-executor-clients/prompt-executor-ollama-client/src/commonMain/kotlin/ai/koog/prompt/executor/ollama/client

prompt/prompt-executor/prompt-executor-clients/prompt-executor-ollama-client/src/commonMain/kotlin/ai/koog/prompt/executor/ollama/client/OllamaModels.kt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public object OllamaModels : LLModelDefinitions {
135135
* @see <a href="https://ollama.com/library/llama4">
136136
*/
137137
@JvmField
138-
public val LLAMA_4_SCOUT: LLModel = LLModel(
138+
public val LLAMA_4_LATEST: LLModel = LLModel(
139139
provider = LLMProvider.Ollama,
140140
id = "llama4:latest",
141141
capabilities = listOf(
@@ -154,8 +154,26 @@ public object OllamaModels : LLModelDefinitions {
154154
*
155155
* @see <a href="https://ollama.com/library/llama4">
156156
*/
157-
@JvmField
158-
public val LLAMA_4: LLModel = LLAMA_4_SCOUT
157+
public val LLAMA_4_SCOUT: LLModel = LLModel(
158+
provider = LLMProvider.Ollama,
159+
id = "llama4:scout",
160+
capabilities = listOf(
161+
LLMCapability.Temperature,
162+
LLMCapability.Schema.JSON.Basic,
163+
LLMCapability.Tools
164+
),
165+
contextLength = 10_485_760,
166+
)
167+
168+
/**
169+
* Represents the LLAMA version 4 model provided by Meta.
170+
*
171+
* The LLAMA 4 collection of models is natively multimodal AI models that enable text and multimodal experiences.
172+
* These two models leverage a mixture-of-experts (MoE) architecture and support native multimodality (image input).
173+
*
174+
* @see <a href="https://ollama.com/library/llama4">
175+
*/
176+
public val LLAMA_4: LLModel = LLAMA_4_LATEST
159177

160178
/**
161179
* Represents the llama-guard model version3 provided by Meta.

0 commit comments

Comments
 (0)