Class OllamaChatProperties.Options
java.lang.Object
org.springframework.ai.model.ollama.autoconfigure.OllamaChatProperties.Options
- Enclosing class:
- OllamaChatProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleangetF16KV()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable ObjectDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoublegetMinP()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable FloatDeprecated, for removal: This API element is subject to removal in a future version.@Nullable FloatDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetSeed()Deprecated, for removal: This API element is subject to removal in a future version.getStop()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable FloatgetTfsZ()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable OllamaThinkPropertiesDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetTopK()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoublegetTopP()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable FloatDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidsetFrequencyPenalty(@Nullable Double frequencyPenalty) voidsetKeepAlive(@Nullable String keepAlive) voidsetLogitsAll(@Nullable Boolean logitsAll) voidsetLowVRAM(@Nullable Boolean lowVRAM) voidsetMainGPU(@Nullable Integer mainGPU) voidvoidsetMirostat(@Nullable Integer mirostat) voidsetMirostatEta(@Nullable Float mirostatEta) voidsetMirostatTau(@Nullable Float mirostatTau) voidvoidsetNumBatch(@Nullable Integer numBatch) voidvoidvoidsetNumKeep(@Nullable Integer numKeep) voidsetNumPredict(@Nullable Integer numPredict) voidsetNumThread(@Nullable Integer numThread) voidsetPenalizeNewline(@Nullable Boolean penalizeNewline) voidsetPresencePenalty(@Nullable Double presencePenalty) voidsetRepeatLastN(@Nullable Integer repeatLastN) voidsetRepeatPenalty(@Nullable Double repeatPenalty) voidvoidvoidsetTemperature(@Nullable Double temperature) voidvoidsetThinkOption(@Nullable OllamaThinkProperties think) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidsetTruncate(@Nullable Boolean truncate) voidsetTypicalP(@Nullable Float typicalP) voidsetUseMLock(@Nullable Boolean useMLock) voidsetUseMMap(@Nullable Boolean useMMap) voidsetUseNUMA(@Nullable Boolean useNUMA) voidsetVocabOnly(@Nullable Boolean vocabOnly)
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-