class Ollama::Client::Configuration::Config

config = Ollama::Client::Config.load_from_json(‘path/to/config.json’)
@example Loading configuration from a JSON file
]
read_timeout: 300
connect_timeout: 15,
output: $stdout,
base_url: ‘localhost:11434’,
config = Ollama::Client::Config[
@example Creating a configuration object
and timeout values.
instances. It includes properties for setting the base URL, output stream,
configuration options that can be used when initializing Ollama client
This class provides a structured way to define and manage various
A class that encapsulates configuration settings for Ollama clients.

def self.[](value)

Returns:
  • (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

def initialize(**attributes)

Returns:
  • (Ollama::Client::Configuration::Config) - returns the initialized configuration instance

Parameters:
  • attributes (Hash) -- a hash containing the configuration attributes to be set
def initialize(**attributes)
  attributes.each { |k, v| send("#{k}=", v) }
  self.output ||= $stdout
end