Class: Ollama::Params::ModelTransfer

Inherits:
Base
  • Object
show all
Defined in:
lib/ollama/params.rb

Overview

Pull/push model parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#merge, #to_h

Constructor Details

#initialize(model:, insecure: false, stream: false, hooks: {}) ⇒ ModelTransfer

Returns a new instance of ModelTransfer.



130
131
132
133
134
135
136
# File 'lib/ollama/params.rb', line 130

def initialize(model:, insecure: false, stream: false, hooks: {})
  super()
  @model = model
  @insecure = insecure
  @stream = stream
  @hooks = hooks
end

Instance Attribute Details

#hooksObject

Returns the value of attribute hooks.



128
129
130
# File 'lib/ollama/params.rb', line 128

def hooks
  @hooks
end

#insecureObject

Returns the value of attribute insecure.



128
129
130
# File 'lib/ollama/params.rb', line 128

def insecure
  @insecure
end

#modelObject

Returns the value of attribute model.



128
129
130
# File 'lib/ollama/params.rb', line 128

def model
  @model
end

#streamObject

Returns the value of attribute stream.



128
129
130
# File 'lib/ollama/params.rb', line 128

def stream
  @stream
end