Package org.vrspace.server.config
Class OllamaConfig
java.lang.Object
org.vrspace.server.config.OllamaConfig
@ConditionalOnProperty(name="org.vrspace.ollama.enabled",
havingValue="true")
@Configuration
public class OllamaConfig
extends Object
Ollama configuration, loaded from properties file. Available only if org.vrspace.ollama.enabled is true.
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintValue of org.vrspace.ollama.contextWindowSize property, defaults to 65536 (roughly 11GB VRAM with 3b model)getFail()How long to keep the model in VRAM, -1 means forever, but must have durationintValue of org.vrspace.ollama.memorySize, defaults to 11 (5x query+response and 1x system message)Value of org.vrspace.ollama.model.tools property, defaults to ministral-3:3bgetUrl()Defaults to http://localhost:11434Value of org.vrspace.ollama.model.vision property, defaults to ministral-3:3binthashCode()voidsetContextWindowSize(int contextWindowSize) Value of org.vrspace.ollama.contextWindowSize property, defaults to 65536 (roughly 11GB VRAM with 3b model)voidsetDescriptionRemove(Pattern descriptionRemove) voidsetDescriptionReplace(Pattern descriptionReplace) voidvoidsetKeepAlive(String keepAlive) How long to keep the model in VRAM, -1 means forever, but must have durationvoidsetMemorySize(int memorySize) Value of org.vrspace.ollama.memorySize, defaults to 11 (5x query+response and 1x system message)voidsetToolsModel(String toolsModel) Value of org.vrspace.ollama.model.tools property, defaults to ministral-3:3bvoidDefaults to http://localhost:11434voidsetVisionModel(String visionModel) Value of org.vrspace.ollama.model.vision property, defaults to ministral-3:3bvoidsetVisionPrompt(String visionPrompt) toString()
-
Constructor Details
-
OllamaConfig
public OllamaConfig()
-
-
Method Details
-
getUrl
Defaults to http://localhost:11434 -
getVisionModel
Value of org.vrspace.ollama.model.vision property, defaults to ministral-3:3b -
getToolsModel
Value of org.vrspace.ollama.model.tools property, defaults to ministral-3:3b -
getContextWindowSize
public int getContextWindowSize()Value of org.vrspace.ollama.contextWindowSize property, defaults to 65536 (roughly 11GB VRAM with 3b model) -
getKeepAlive
How long to keep the model in VRAM, -1 means forever, but must have duration -
getMemorySize
public int getMemorySize()Value of org.vrspace.ollama.memorySize, defaults to 11 (5x query+response and 1x system message) -
getVisionPrompt
-
getDescriptionRemove
-
getDescriptionReplace
-
getFail
-
setUrl
Defaults to http://localhost:11434 -
setVisionModel
Value of org.vrspace.ollama.model.vision property, defaults to ministral-3:3b -
setToolsModel
Value of org.vrspace.ollama.model.tools property, defaults to ministral-3:3b -
setContextWindowSize
public void setContextWindowSize(int contextWindowSize) Value of org.vrspace.ollama.contextWindowSize property, defaults to 65536 (roughly 11GB VRAM with 3b model) -
setKeepAlive
How long to keep the model in VRAM, -1 means forever, but must have duration -
setMemorySize
public void setMemorySize(int memorySize) Value of org.vrspace.ollama.memorySize, defaults to 11 (5x query+response and 1x system message) -
setVisionPrompt
-
setDescriptionRemove
-
setDescriptionReplace
-
setFail
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-