Class: Ollama::Params::Chat
Overview
Chat completion parameters
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#logprobs ⇒ Object
Returns the value of attribute logprobs.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#model ⇒ Object
Returns the value of attribute model.
-
#options ⇒ Object
Returns the value of attribute options.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#think ⇒ Object
Returns the value of attribute think.
-
#tools ⇒ Object
Returns the value of attribute tools.
-
#top_logprobs ⇒ Object
Returns the value of attribute top_logprobs.
Instance Method Summary collapse
-
#initialize(messages:, model: nil, format: nil, tools: nil, stream: nil, think: nil, keep_alive: nil, options: nil, logprobs: nil, top_logprobs: nil, hooks: {}, profile: :auto, inputs: nil) ⇒ Chat
constructor
rubocop:disable Metrics/ParameterLists.
Methods inherited from Base
Constructor Details
#initialize(messages:, model: nil, format: nil, tools: nil, stream: nil, think: nil, keep_alive: nil, options: nil, logprobs: nil, top_logprobs: nil, hooks: {}, profile: :auto, inputs: nil) ⇒ Chat
rubocop:disable Metrics/ParameterLists
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/ollama/params.rb', line 29 def initialize(messages:, model: nil, format: nil, tools: nil, stream: nil, think: nil, keep_alive: nil, options: nil, logprobs: nil, top_logprobs: nil, hooks: {}, profile: :auto, inputs: nil) # rubocop:enable Metrics/ParameterLists super() @messages = @model = model @format = format @tools = tools @stream = stream @think = think @keep_alive = keep_alive @options = @logprobs = logprobs @top_logprobs = top_logprobs @hooks = hooks @profile = profile @inputs = inputs end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def format @format end |
#hooks ⇒ Object
Returns the value of attribute hooks.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def hooks @hooks end |
#inputs ⇒ Object
Returns the value of attribute inputs.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def inputs @inputs end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def keep_alive @keep_alive end |
#logprobs ⇒ Object
Returns the value of attribute logprobs.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def logprobs @logprobs end |
#messages ⇒ Object
Returns the value of attribute messages.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def @messages end |
#model ⇒ Object
Returns the value of attribute model.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def model @model end |
#options ⇒ Object
Returns the value of attribute options.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def @options end |
#profile ⇒ Object
Returns the value of attribute profile.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def profile @profile end |
#stream ⇒ Object
Returns the value of attribute stream.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def stream @stream end |
#think ⇒ Object
Returns the value of attribute think.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def think @think end |
#tools ⇒ Object
Returns the value of attribute tools.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def tools @tools end |
#top_logprobs ⇒ Object
Returns the value of attribute top_logprobs.
24 25 26 |
# File 'lib/ollama/params.rb', line 24 def top_logprobs @top_logprobs end |