class

Smith::LLM::Request

Inherits Reference < Object

Constructors

new(model : String, messages : Array(Message), system : String | Nil = nil, tools : Array(ToolSpec) | Nil = nil, max_tokens : Int32 | Nil = nil, temperature : Float64 | Nil = nil, stream : Bool = true, thinking_effort : String | Nil = nil, thinking_budget : Int32 | Nil = nil)
Source

Instance methods

max_tokens
Source
messages
Source
model
Source
stream?
Source
system
Source
temperature
Source
thinking_budget

The pre-4.6 form, where thinking was a fixed token budget rather than an effort level. Current models reject it with a 400, so it is only set when someone explicitly configures it for an older model.

Source
thinking_effort

nil leaves thinking off, which is the default. Otherwise one of low/medium/high/xhigh/max — how deep the model is asked to think.

Source
tools
Source