class Ollama::Commands::Chat

def initialize(model:, messages:, tools: nil, format: nil, options: nil, stream: nil, keep_alive: nil)

def initialize(model:, messages:, tools: nil, format: nil, options: nil, stream: nil, keep_alive: nil)
  @model, @messages, @tools, @format, @options, @stream, @keep_alive =
    model, as_array_of_hashes(messages), as_array_of_hashes(tools),
    format, options, stream, keep_alive
end