Class OllamaConfig

java.lang.Object
org.vrspace.server.config.OllamaConfig

@ConditionalOnProperty(name="org.vrspace.ollama.enabled", havingValue="true") @Configuration public class OllamaConfig extends Object
  • Constructor Details

    • OllamaConfig

      public OllamaConfig()
  • Method Details

    • getUrl

      public String getUrl()
    • getVisionModel

      public String getVisionModel()
    • getToolsModel

      public String getToolsModel()
    • getContextWindowSize

      public int getContextWindowSize()
    • getKeepAlive

      public String getKeepAlive()
      How long to keep the model in VRAM, -1 means forever, but must have duration
    • getMemorySize

      public int getMemorySize()
    • getVisionPrompt

      public String getVisionPrompt()
    • getDescriptionRemove

      public Pattern getDescriptionRemove()
    • getDescriptionReplace

      public Pattern getDescriptionReplace()
    • getFail

      public Pattern getFail()
    • setUrl

      public void setUrl(String url)
    • setVisionModel

      public void setVisionModel(String visionModel)
    • setToolsModel

      public void setToolsModel(String toolsModel)
    • setContextWindowSize

      public void setContextWindowSize(int contextWindowSize)
    • setKeepAlive

      public void setKeepAlive(String keepAlive)
      How long to keep the model in VRAM, -1 means forever, but must have duration
    • setMemorySize

      public void setMemorySize(int memorySize)
    • setVisionPrompt

      public void setVisionPrompt(String visionPrompt)
    • setDescriptionRemove

      public void setDescriptionRemove(Pattern descriptionRemove)
    • setDescriptionReplace

      public void setDescriptionReplace(Pattern descriptionReplace)
    • setFail

      public void setFail(Pattern fail)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object