Class: LiterLlm::ChatCompletionRequest
- Inherits:
-
Object
- Object
- LiterLlm::ChatCompletionRequest
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#audio ⇒ String?
readonly
Returns the value of attribute audio.
-
#extra_body ⇒ String?
readonly
Returns the value of attribute extra_body.
-
#frequency_penalty ⇒ Float?
readonly
Returns the value of attribute frequency_penalty.
-
#logit_bias ⇒ Hash[String, Float]?
readonly
Returns the value of attribute logit_bias.
-
#logprobs ⇒ Boolean?
readonly
Returns the value of attribute logprobs.
-
#max_completion_tokens ⇒ Integer?
readonly
Returns the value of attribute max_completion_tokens.
-
#max_tokens ⇒ Integer?
readonly
Returns the value of attribute max_tokens.
-
#messages ⇒ Array[Message]
readonly
Returns the value of attribute messages.
-
#metadata ⇒ Hash[String, String]?
readonly
Returns the value of attribute metadata.
-
#modalities ⇒ Array[Modality]?
readonly
Returns the value of attribute modalities.
-
#model ⇒ String
readonly
Returns the value of attribute model.
-
#n ⇒ Integer?
readonly
Returns the value of attribute n.
-
#parallel_tool_calls ⇒ Boolean?
readonly
Returns the value of attribute parallel_tool_calls.
-
#prediction ⇒ String?
readonly
Returns the value of attribute prediction.
-
#presence_penalty ⇒ Float?
readonly
Returns the value of attribute presence_penalty.
-
#reasoning_effort ⇒ ReasoningEffort?
readonly
Returns the value of attribute reasoning_effort.
-
#response_format ⇒ ResponseFormat?
readonly
Returns the value of attribute response_format.
-
#seed ⇒ Integer?
readonly
Returns the value of attribute seed.
-
#service_tier ⇒ String?
readonly
Returns the value of attribute service_tier.
-
#stop ⇒ StopSequence?
readonly
Returns the value of attribute stop.
-
#store ⇒ Boolean?
readonly
Returns the value of attribute store.
-
#stream ⇒ Boolean?
readonly
Returns the value of attribute stream.
-
#stream_options ⇒ StreamOptions?
readonly
Returns the value of attribute stream_options.
-
#temperature ⇒ Float?
readonly
Returns the value of attribute temperature.
-
#tool_choice ⇒ ToolChoice?
readonly
Returns the value of attribute tool_choice.
-
#tools ⇒ Array[ChatCompletionTool]?
readonly
Returns the value of attribute tools.
-
#top_logprobs ⇒ Integer?
readonly
Returns the value of attribute top_logprobs.
-
#top_p ⇒ Float?
readonly
Returns the value of attribute top_p.
-
#user ⇒ String?
readonly
Returns the value of attribute user.
-
#web_search_options ⇒ String?
readonly
Returns the value of attribute web_search_options.
Instance Method Summary collapse
-
#initialize ⇒ ChatCompletionRequest
constructor
A new instance of ChatCompletionRequest.
Constructor Details
#initialize ⇒ ChatCompletionRequest
Returns a new instance of ChatCompletionRequest.
166 |
# File 'sig/types.rbs', line 166
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], ?logprobs: bool, ?top_logprobs: Integer, ?max_completion_tokens: Integer, ?service_tier: String, ?store: bool, ?metadata: Hash[String, String], ?prediction: String, ?audio: String, ?web_search_options: String, ?extra_body: String) -> void
|
Instance Attribute Details
#audio ⇒ String? (readonly)
Returns the value of attribute audio.
162 163 164 |
# File 'sig/types.rbs', line 162 def audio @audio end |
#extra_body ⇒ String? (readonly)
Returns the value of attribute extra_body.
164 165 166 |
# File 'sig/types.rbs', line 164 def extra_body @extra_body end |
#frequency_penalty ⇒ Float? (readonly)
Returns the value of attribute frequency_penalty.
144 145 146 |
# File 'sig/types.rbs', line 144 def frequency_penalty @frequency_penalty end |
#logit_bias ⇒ Hash[String, Float]? (readonly)
Returns the value of attribute logit_bias.
145 146 147 |
# File 'sig/types.rbs', line 145 def logit_bias @logit_bias end |
#logprobs ⇒ Boolean? (readonly)
Returns the value of attribute logprobs.
155 156 157 |
# File 'sig/types.rbs', line 155 def logprobs @logprobs end |
#max_completion_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_completion_tokens.
157 158 159 |
# File 'sig/types.rbs', line 157 def max_completion_tokens @max_completion_tokens end |
#max_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_tokens.
142 143 144 |
# File 'sig/types.rbs', line 142 def max_tokens @max_tokens end |
#messages ⇒ Array[Message] (readonly)
Returns the value of attribute messages.
136 137 138 |
# File 'sig/types.rbs', line 136 def @messages end |
#metadata ⇒ Hash[String, String]? (readonly)
Returns the value of attribute metadata.
160 161 162 |
# File 'sig/types.rbs', line 160 def @metadata end |
#modalities ⇒ Array[Modality]? (readonly)
Returns the value of attribute modalities.
154 155 156 |
# File 'sig/types.rbs', line 154 def modalities @modalities end |
#model ⇒ String (readonly)
Returns the value of attribute model.
135 136 137 |
# File 'sig/types.rbs', line 135 def model @model end |
#n ⇒ Integer? (readonly)
Returns the value of attribute n.
139 140 141 |
# File 'sig/types.rbs', line 139 def n @n end |
#parallel_tool_calls ⇒ Boolean? (readonly)
Returns the value of attribute parallel_tool_calls.
149 150 151 |
# File 'sig/types.rbs', line 149 def parallel_tool_calls @parallel_tool_calls end |
#prediction ⇒ String? (readonly)
Returns the value of attribute prediction.
161 162 163 |
# File 'sig/types.rbs', line 161 def prediction @prediction end |
#presence_penalty ⇒ Float? (readonly)
Returns the value of attribute presence_penalty.
143 144 145 |
# File 'sig/types.rbs', line 143 def presence_penalty @presence_penalty end |
#reasoning_effort ⇒ ReasoningEffort? (readonly)
Returns the value of attribute reasoning_effort.
153 154 155 |
# File 'sig/types.rbs', line 153 def reasoning_effort @reasoning_effort end |
#response_format ⇒ ResponseFormat? (readonly)
Returns the value of attribute response_format.
150 151 152 |
# File 'sig/types.rbs', line 150 def response_format @response_format end |
#seed ⇒ Integer? (readonly)
Returns the value of attribute seed.
152 153 154 |
# File 'sig/types.rbs', line 152 def seed @seed end |
#service_tier ⇒ String? (readonly)
Returns the value of attribute service_tier.
158 159 160 |
# File 'sig/types.rbs', line 158 def service_tier @service_tier end |
#stop ⇒ StopSequence? (readonly)
Returns the value of attribute stop.
141 142 143 |
# File 'sig/types.rbs', line 141 def stop @stop end |
#store ⇒ Boolean? (readonly)
Returns the value of attribute store.
159 160 161 |
# File 'sig/types.rbs', line 159 def store @store end |
#stream ⇒ Boolean? (readonly)
Returns the value of attribute stream.
140 141 142 |
# File 'sig/types.rbs', line 140 def stream @stream end |
#stream_options ⇒ StreamOptions? (readonly)
Returns the value of attribute stream_options.
151 152 153 |
# File 'sig/types.rbs', line 151 def @stream_options end |
#temperature ⇒ Float? (readonly)
Returns the value of attribute temperature.
137 138 139 |
# File 'sig/types.rbs', line 137 def temperature @temperature end |
#tool_choice ⇒ ToolChoice? (readonly)
Returns the value of attribute tool_choice.
148 149 150 |
# File 'sig/types.rbs', line 148 def tool_choice @tool_choice end |
#tools ⇒ Array[ChatCompletionTool]? (readonly)
Returns the value of attribute tools.
147 148 149 |
# File 'sig/types.rbs', line 147 def tools @tools end |
#top_logprobs ⇒ Integer? (readonly)
Returns the value of attribute top_logprobs.
156 157 158 |
# File 'sig/types.rbs', line 156 def top_logprobs @top_logprobs end |
#top_p ⇒ Float? (readonly)
Returns the value of attribute top_p.
138 139 140 |
# File 'sig/types.rbs', line 138 def top_p @top_p end |
#user ⇒ String? (readonly)
Returns the value of attribute user.
146 147 148 |
# File 'sig/types.rbs', line 146 def user @user end |
#web_search_options ⇒ String? (readonly)
Returns the value of attribute web_search_options.
163 164 165 |
# File 'sig/types.rbs', line 163 def @web_search_options end |