Package com.google.genkit.plugins.ollama
Class OllamaPluginOptions
java.lang.Object
com.google.genkit.plugins.ollama.OllamaPluginOptions
Options for configuring the Ollama plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for OllamaPluginOptions. -
Method Summary
Modifier and TypeMethodDescriptionstatic OllamaPluginOptions.Builderbuilder()Creates a new builder.Gets the base URL for Ollama API requests.Gets the list of models to register.intGets the request timeout in seconds.
-
Method Details
-
builder
Creates a new builder.- Returns:
- a new builder
-
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
Gets the list of models to register. If empty, will attempt to auto-discover models from Ollama.- Returns:
- the list of models
-