Class OllamaChatProperties.Options

java.lang.Object
org.springframework.ai.model.ollama.autoconfigure.OllamaChatProperties.Options
Enclosing class:
OllamaChatProperties

public class OllamaChatProperties.Options extends Object
  • Constructor Details

    • Options

      public Options()
  • Method Details

    • getModel

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.model") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getModel()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setModel

      public void setModel(@Nullable String model)
    • getFormat

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.format") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Object getFormat()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFormat

      public void setFormat(@Nullable Object format)
    • getKeepAlive

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.keep-alive") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getKeepAlive()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setKeepAlive

      public void setKeepAlive(@Nullable String keepAlive)
    • getTruncate

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.truncate") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getTruncate()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTruncate

      public void setTruncate(@Nullable Boolean truncate)
    • getThinkOption

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.think") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable OllamaThinkProperties getThinkOption()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setThinkOption

      @Deprecated(since="2.0.0", forRemoval=true) public void setThinkOption(@Nullable OllamaThinkProperties think)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUseNUMA

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.use-numa") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getUseNUMA()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUseNUMA

      public void setUseNUMA(@Nullable Boolean useNUMA)
    • getNumCtx

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-ctx") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumCtx()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumCtx

      public void setNumCtx(@Nullable Integer numCtx)
    • getNumBatch

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-batch") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumBatch()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumBatch

      public void setNumBatch(@Nullable Integer numBatch)
    • getNumGPU

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-gpu") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumGPU()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumGPU

      public void setNumGPU(@Nullable Integer numGPU)
    • getMainGPU

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.main-gpu") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMainGPU()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMainGPU

      public void setMainGPU(@Nullable Integer mainGPU)
    • getLowVRAM

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.low-vram") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getLowVRAM()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setLowVRAM

      public void setLowVRAM(@Nullable Boolean lowVRAM)
    • getF16KV

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.f16-kv") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getF16KV()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setF16KV

      public void setF16KV(@Nullable Boolean f16KV)
    • getLogitsAll

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.logits-all") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getLogitsAll()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setLogitsAll

      public void setLogitsAll(@Nullable Boolean logitsAll)
    • getVocabOnly

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.vocab-only") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getVocabOnly()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setVocabOnly

      public void setVocabOnly(@Nullable Boolean vocabOnly)
    • getUseMMap

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.use-m-map") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getUseMMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUseMMap

      public void setUseMMap(@Nullable Boolean useMMap)
    • getUseMLock

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.use-m-lock") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getUseMLock()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUseMLock

      public void setUseMLock(@Nullable Boolean useMLock)
    • getNumThread

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-thread") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumThread()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumThread

      public void setNumThread(@Nullable Integer numThread)
    • getNumKeep

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-keep") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumKeep()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumKeep

      public void setNumKeep(@Nullable Integer numKeep)
    • getSeed

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.seed") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getSeed()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSeed

      public void setSeed(@Nullable Integer seed)
    • getNumPredict

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.num-predict") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getNumPredict()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNumPredict

      public void setNumPredict(@Nullable Integer numPredict)
    • getTopK

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.top-k") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getTopK()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTopK

      public void setTopK(@Nullable Integer topK)
    • getTopP

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.top-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTopP()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTopP

      public void setTopP(@Nullable Double topP)
    • getMinP

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.min-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getMinP()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMinP

      public void setMinP(@Nullable Double minP)
    • getTfsZ

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.tfs-z") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Float getTfsZ()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTfsZ

      public void setTfsZ(@Nullable Float tfsZ)
    • getTypicalP

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.typical-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Float getTypicalP()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTypicalP

      public void setTypicalP(@Nullable Float typicalP)
    • getRepeatLastN

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.repeat-last-n") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getRepeatLastN()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setRepeatLastN

      public void setRepeatLastN(@Nullable Integer repeatLastN)
    • getTemperature

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.temperature") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTemperature()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTemperature

      public void setTemperature(@Nullable Double temperature)
    • getRepeatPenalty

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.repeat-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getRepeatPenalty()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setRepeatPenalty

      public void setRepeatPenalty(@Nullable Double repeatPenalty)
    • getPresencePenalty

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.presence-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getPresencePenalty()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPresencePenalty

      public void setPresencePenalty(@Nullable Double presencePenalty)
    • getFrequencyPenalty

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.frequency-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getFrequencyPenalty()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFrequencyPenalty

      public void setFrequencyPenalty(@Nullable Double frequencyPenalty)
    • getMirostat

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.mirostat") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMirostat()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMirostat

      public void setMirostat(@Nullable Integer mirostat)
    • getMirostatTau

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.mirostat-tau") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Float getMirostatTau()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMirostatTau

      public void setMirostatTau(@Nullable Float mirostatTau)
    • getMirostatEta

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.mirostat-eta") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Float getMirostatEta()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMirostatEta

      public void setMirostatEta(@Nullable Float mirostatEta)
    • getPenalizeNewline

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.penalize-newline") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getPenalizeNewline()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPenalizeNewline

      public void setPenalizeNewline(@Nullable Boolean penalizeNewline)
    • getStop

      @DeprecatedConfigurationProperty(replacement="spring.ai.ollama.chat.stop") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<String> getStop()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setStop

      public void setStop(@Nullable List<String> stop)