Class OllamaPluginOptions

java.lang.Object
com.google.genkit.plugins.ollama.OllamaPluginOptions

public class OllamaPluginOptions extends Object
Options for configuring the Ollama plugin.
  • Method Details

    • builder

      public static OllamaPluginOptions.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • getBaseUrl

      public String getBaseUrl()
      Gets the base URL for Ollama API requests.
      Returns:
      the base URL
    • getTimeout

      public int getTimeout()
      Gets the request timeout in seconds.
      Returns:
      the timeout
    • getModels

      public List<String> getModels()
      Gets the list of models to register. If empty, will attempt to auto-discover models from Ollama.
      Returns:
      the list of models