Class: Ollama::Params::ModelTransfer
Overview
Pull/push model parameters
Instance Attribute Summary collapse
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#insecure ⇒ Object
Returns the value of attribute insecure.
-
#model ⇒ Object
Returns the value of attribute model.
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(model:, insecure: false, stream: false, hooks: {}) ⇒ ModelTransfer
constructor
A new instance of ModelTransfer.
Methods inherited from Base
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
#hooks ⇒ Object
Returns the value of attribute hooks.
128 129 130 |
# File 'lib/ollama/params.rb', line 128 def hooks @hooks end |
#insecure ⇒ Object
Returns the value of attribute insecure.
128 129 130 |
# File 'lib/ollama/params.rb', line 128 def insecure @insecure end |
#model ⇒ Object
Returns the value of attribute model.
128 129 130 |
# File 'lib/ollama/params.rb', line 128 def model @model end |
#stream ⇒ Object
Returns the value of attribute stream.
128 129 130 |
# File 'lib/ollama/params.rb', line 128 def stream @stream end |