Class: Luogu::OpenAI::ChatRequestParams
- Inherits:
-
Struct
- Object
- Struct
- Luogu::OpenAI::ChatRequestParams
- Defined in:
- lib/luogu/openai.rb
Instance Attribute Summary collapse
-
#frequency_penalty ⇒ Object
Returns the value of attribute frequency_penalty.
-
#logit_bias ⇒ Object
Returns the value of attribute logit_bias.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#model ⇒ Object
Returns the value of attribute model.
-
#n ⇒ Object
Returns the value of attribute n.
-
#presence_penalty ⇒ Object
Returns the value of attribute presence_penalty.
-
#stop ⇒ Object
Returns the value of attribute stop.
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#top_p ⇒ Object
Returns the value of attribute top_p.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #to_h ⇒ Object (also: #to_hash)
Instance Attribute Details
#frequency_penalty ⇒ Object
Returns the value of attribute frequency_penalty
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def frequency_penalty @frequency_penalty end |
#logit_bias ⇒ Object
Returns the value of attribute logit_bias
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def logit_bias @logit_bias end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def max_tokens @max_tokens end |
#messages ⇒ Object
Returns the value of attribute messages
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def @messages end |
#model ⇒ Object
Returns the value of attribute model
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def model @model end |
#n ⇒ Object
Returns the value of attribute n
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def n @n end |
#presence_penalty ⇒ Object
Returns the value of attribute presence_penalty
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def presence_penalty @presence_penalty end |
#stop ⇒ Object
Returns the value of attribute stop
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def stop @stop end |
#stream ⇒ Object
Returns the value of attribute stream
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def stream @stream end |
#temperature ⇒ Object
Returns the value of attribute temperature
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def temperature @temperature end |
#top_p ⇒ Object
Returns the value of attribute top_p
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def top_p @top_p end |
#user ⇒ Object
Returns the value of attribute user
8 9 10 |
# File 'lib/luogu/openai.rb', line 8 def user @user end |
Instance Method Details
#to_h ⇒ Object Also known as: to_hash
12 13 14 |
# File 'lib/luogu/openai.rb', line 12 def to_h super.reject { |_, v| v.nil? } end |