Package dev.agenor.adapters.llm.ollama
Enum Class OllamaProvider.Models
- All Implemented Interfaces:
Serializable,Comparable<OllamaProvider.Models>,Constable
- Enclosing class:
OllamaProvider
@Deprecated(since="0.36.0",
forRemoval=true)
public static enum OllamaProvider.Models
extends Enum<OllamaProvider.Models>
Deprecated, for removal: This API element is subject to removal in a future version.
Known Ollama model family/base names and their context window sizes.
Versioned tags (":8b", ":70b") share the base context window and are
registered separately, in this class's static initializer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intDeprecated, for removal: This API element is subject to removal in a future version.final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic OllamaProvider.ModelsDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static OllamaProvider.Models[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LLAMA_3_2
Deprecated, for removal: This API element is subject to removal in a future version. -
LLAMA_3_1
Deprecated, for removal: This API element is subject to removal in a future version. -
LLAMA_3
Deprecated, for removal: This API element is subject to removal in a future version. -
LLAMA_2
Deprecated, for removal: This API element is subject to removal in a future version. -
MISTRAL
Deprecated, for removal: This API element is subject to removal in a future version. -
MIXTRAL
Deprecated, for removal: This API element is subject to removal in a future version. -
MISTRAL_NEMO
Deprecated, for removal: This API element is subject to removal in a future version. -
QWEN_2_5
Deprecated, for removal: This API element is subject to removal in a future version. -
QWEN_2_5_CODER
Deprecated, for removal: This API element is subject to removal in a future version. -
GEMMA_3
Deprecated, for removal: This API element is subject to removal in a future version. -
GEMMA_2
Deprecated, for removal: This API element is subject to removal in a future version. -
GEMMA
Deprecated, for removal: This API element is subject to removal in a future version. -
PHI_4
Deprecated, for removal: This API element is subject to removal in a future version. -
PHI_3
Deprecated, for removal: This API element is subject to removal in a future version. -
PHI_3_5
Deprecated, for removal: This API element is subject to removal in a future version. -
DEEPSEEK_R1
Deprecated, for removal: This API element is subject to removal in a future version. -
DEEPSEEK_CODER_V2
Deprecated, for removal: This API element is subject to removal in a future version. -
CODELLAMA
Deprecated, for removal: This API element is subject to removal in a future version. -
CODEGEMMA
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Field Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version. -
contextWindow
public final int contextWindowDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
OllamaProvider.getDefaultModel()still names a sensible default when none is given. If the model needs a context window other than the fallback, register one directly withModelTokenLimits.register(java.lang.String, int).