Enum Class OllamaProvider.Models

java.lang.Object
java.lang.Enum<OllamaProvider.Models>
dev.agenor.adapters.llm.ollama.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.
since 0.36.0, for removal in 1.0.0. A public enum of model constants goes stale the day a new model lands in Ollama's library, and removing a retired constant is itself a breaking change — so offering one at all works against ever reaching a release with no breaking entry. Name a model by its string id instead — any tag combination, not only the ones listed here — and 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 with ModelTokenLimits.register(java.lang.String, int).
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 Constants
    Enum Constant
    Description
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LLAMA_3_2

      public static final OllamaProvider.Models LLAMA_3_2
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LLAMA_3_1

      public static final OllamaProvider.Models LLAMA_3_1
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LLAMA_3

      public static final OllamaProvider.Models LLAMA_3
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LLAMA_2

      public static final OllamaProvider.Models LLAMA_2
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MISTRAL

      public static final OllamaProvider.Models MISTRAL
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MIXTRAL

      public static final OllamaProvider.Models MIXTRAL
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MISTRAL_NEMO

      public static final OllamaProvider.Models MISTRAL_NEMO
      Deprecated, for removal: This API element is subject to removal in a future version.
    • QWEN_2_5

      public static final OllamaProvider.Models QWEN_2_5
      Deprecated, for removal: This API element is subject to removal in a future version.
    • QWEN_2_5_CODER

      public static final OllamaProvider.Models QWEN_2_5_CODER
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GEMMA_3

      public static final OllamaProvider.Models GEMMA_3
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GEMMA_2

      public static final OllamaProvider.Models GEMMA_2
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GEMMA

      public static final OllamaProvider.Models GEMMA
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PHI_4

      public static final OllamaProvider.Models PHI_4
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PHI_3

      public static final OllamaProvider.Models PHI_3
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PHI_3_5

      public static final OllamaProvider.Models PHI_3_5
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DEEPSEEK_R1

      public static final OllamaProvider.Models DEEPSEEK_R1
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DEEPSEEK_CODER_V2

      public static final OllamaProvider.Models DEEPSEEK_CODER_V2
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CODELLAMA

      public static final OllamaProvider.Models CODELLAMA
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CODEGEMMA

      public static final OllamaProvider.Models CODEGEMMA
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

    • id

      public final String id
      Deprecated, for removal: This API element is subject to removal in a future version.
    • contextWindow

      public final int contextWindow
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • values

      public 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.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OllamaProvider.Models valueOf(String name)
      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 name
      NullPointerException - if the argument is null