struct

Crig::Providers::OpenAI::CompletionRequest

Inherits Struct < Value < Object

Constructors

new(input : Crig::OneOrMany(InputItem), model : String, instructions : String | Nil = nil, max_output_tokens : Int64 | Nil = nil, stream : Bool | Nil = nil, temperature : Float64 | Nil = nil, tool_choice : JSON::Any | Nil = nil, tools : Array(ResponsesToolDefinition) = [] of ResponsesToolDefinition, additional_parameters : AdditionalParameters = AdditionalParameters.new)
Source

Instance methods

additional_parameters
Source
input
Source
instructions
Source
max_output_tokens
Source
model
Source
stream
Source
temperature
Source
to_json_value
Source
tool_choice
Source
tools
Source
with_reasoning(reasoning : Reasoning) : self
Source
with_stream(stream : Bool) : self
Source
with_structured_outputs(schema_name : String, schema : JSON::Any) : self
Source
with_tool(tool : ResponsesToolDefinition) : self
Source
with_tools(tools : Enumerable(ResponsesToolDefinition)) : self
Source