class Ollama::Options
[Options are explained in the parameters for the modelfile.](github.com/ollama/ollama/blob/main/docs/modelfile.md#parameter)
)
top_p: 0.9
num_ctx: 8192,
temperature: 0.7,
options = Ollama::Options.new(
@example Creating an Options object with specific settings
programmatically.
data types, making it easier to work with model configurations
includes type validation to ensure that option values conform to expected
that can be passed to Ollama models during generation or chat operations. It
This class provides a structured way to define and manage various parameters
A class that encapsulates configuration options for Ollama models.
def self.[](value)
-
(self)- a new instance of the class initialized with the provided
Parameters:
-
value(Hash) -- a hash containing the attribute names and their values
def self.[](value) new(**value.to_h) end