Class: LiterLlm::ChatCompletionRequest
- Inherits:
-
Object
- Object
- LiterLlm::ChatCompletionRequest
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#extra_body ⇒ json_value?
Returns the value of attribute extra_body.
-
#frequency_penalty ⇒ Float?
Returns the value of attribute frequency_penalty.
-
#logit_bias ⇒ Hash[String, Float]?
Returns the value of attribute logit_bias.
-
#max_tokens ⇒ Integer?
Returns the value of attribute max_tokens.
-
#messages ⇒ Array[Message]?
Returns the value of attribute messages.
-
#modalities ⇒ Array[Modality]?
Returns the value of attribute modalities.
-
#model ⇒ String?
Returns the value of attribute model.
-
#n ⇒ Integer?
Returns the value of attribute n.
-
#parallel_tool_calls ⇒ Boolean?
Returns the value of attribute parallel_tool_calls.
-
#presence_penalty ⇒ Float?
Returns the value of attribute presence_penalty.
-
#reasoning_effort ⇒ ReasoningEffort?
Returns the value of attribute reasoning_effort.
-
#response_format ⇒ ResponseFormat?
Returns the value of attribute response_format.
-
#seed ⇒ Integer?
Returns the value of attribute seed.
-
#stop ⇒ StopSequence?
Returns the value of attribute stop.
-
#stream ⇒ Boolean?
Returns the value of attribute stream.
-
#stream_options ⇒ StreamOptions?
Returns the value of attribute stream_options.
-
#temperature ⇒ Float?
Returns the value of attribute temperature.
-
#tool_choice ⇒ ToolChoice?
Returns the value of attribute tool_choice.
-
#tools ⇒ Array[ChatCompletionTool]?
Returns the value of attribute tools.
-
#top_p ⇒ Float?
Returns the value of attribute top_p.
-
#user ⇒ String?
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ ChatCompletionRequest
constructor
A new instance of ChatCompletionRequest.
Constructor Details
#initialize ⇒ ChatCompletionRequest
Returns a new instance of ChatCompletionRequest.
175 |
# File 'sig/types.rbs', line 175
def initialize: (?model: String, ?messages: Array[Message], ?temperature: Float, ?top_p: Float, ?n: Integer, ?stream: bool, ?stop: StopSequence, ?max_tokens: Integer, ?presence_penalty: Float, ?frequency_penalty: Float, ?logit_bias: Hash[String, Float], ?user: String, ?tools: Array[ChatCompletionTool], ?tool_choice: ToolChoice, ?parallel_tool_calls: bool, ?response_format: ResponseFormat, ?stream_options: StreamOptions, ?seed: Integer, ?reasoning_effort: ReasoningEffort, ?modalities: Array[Modality], ?extra_body: json_value) -> void
|
Instance Attribute Details
#extra_body ⇒ json_value?
Returns the value of attribute extra_body.
173 174 175 |
# File 'sig/types.rbs', line 173 def extra_body @extra_body end |
#frequency_penalty ⇒ Float?
Returns the value of attribute frequency_penalty.
162 163 164 |
# File 'sig/types.rbs', line 162 def frequency_penalty @frequency_penalty end |
#logit_bias ⇒ Hash[String, Float]?
Returns the value of attribute logit_bias.
163 164 165 |
# File 'sig/types.rbs', line 163 def logit_bias @logit_bias end |
#max_tokens ⇒ Integer?
Returns the value of attribute max_tokens.
160 161 162 |
# File 'sig/types.rbs', line 160 def max_tokens @max_tokens end |
#messages ⇒ Array[Message]?
Returns the value of attribute messages.
154 155 156 |
# File 'sig/types.rbs', line 154 def @messages end |
#modalities ⇒ Array[Modality]?
Returns the value of attribute modalities.
172 173 174 |
# File 'sig/types.rbs', line 172 def modalities @modalities end |
#model ⇒ String?
Returns the value of attribute model.
153 154 155 |
# File 'sig/types.rbs', line 153 def model @model end |
#n ⇒ Integer?
Returns the value of attribute n.
157 158 159 |
# File 'sig/types.rbs', line 157 def n @n end |
#parallel_tool_calls ⇒ Boolean?
Returns the value of attribute parallel_tool_calls.
167 168 169 |
# File 'sig/types.rbs', line 167 def parallel_tool_calls @parallel_tool_calls end |
#presence_penalty ⇒ Float?
Returns the value of attribute presence_penalty.
161 162 163 |
# File 'sig/types.rbs', line 161 def presence_penalty @presence_penalty end |
#reasoning_effort ⇒ ReasoningEffort?
Returns the value of attribute reasoning_effort.
171 172 173 |
# File 'sig/types.rbs', line 171 def reasoning_effort @reasoning_effort end |
#response_format ⇒ ResponseFormat?
Returns the value of attribute response_format.
168 169 170 |
# File 'sig/types.rbs', line 168 def response_format @response_format end |
#seed ⇒ Integer?
Returns the value of attribute seed.
170 171 172 |
# File 'sig/types.rbs', line 170 def seed @seed end |
#stop ⇒ StopSequence?
Returns the value of attribute stop.
159 160 161 |
# File 'sig/types.rbs', line 159 def stop @stop end |
#stream ⇒ Boolean?
Returns the value of attribute stream.
158 159 160 |
# File 'sig/types.rbs', line 158 def stream @stream end |
#stream_options ⇒ StreamOptions?
Returns the value of attribute stream_options.
169 170 171 |
# File 'sig/types.rbs', line 169 def @stream_options end |
#temperature ⇒ Float?
Returns the value of attribute temperature.
155 156 157 |
# File 'sig/types.rbs', line 155 def temperature @temperature end |
#tool_choice ⇒ ToolChoice?
Returns the value of attribute tool_choice.
166 167 168 |
# File 'sig/types.rbs', line 166 def tool_choice @tool_choice end |
#tools ⇒ Array[ChatCompletionTool]?
Returns the value of attribute tools.
165 166 167 |
# File 'sig/types.rbs', line 165 def tools @tools end |
#top_p ⇒ Float?
Returns the value of attribute top_p.
156 157 158 |
# File 'sig/types.rbs', line 156 def top_p @top_p end |
#user ⇒ String?
Returns the value of attribute user.
164 165 166 |
# File 'sig/types.rbs', line 164 def user @user end |