struct

Crig::RequestPatch

Inherits Struct < Value < Object

Constructors

new(preamble : String | Nil = nil, temperature : Float64 | Nil = nil, max_tokens : UInt64 | Nil = nil, tool_choice : Completion::ToolChoice | Nil = nil, active_tools : Array(String) | Nil = nil, additional_params : JSON::Any | Nil = nil, extra_context : Array(Completion::Document) = [] of Completion::Document, history : Array(Completion::Message) | Nil = nil)
Source

Instance methods

active_tools(names : Array(String)) : self
Source
active_tools
Source
active_tools=(active_tools : Array(String) | Nil)
Source
additional_params(value : Hash(String, JSON::Any)) : self
Source
additional_params
Source
additional_params=(additional_params : JSON::Any | Nil)
Source
context(doc : Completion::Document) : self
Source
empty?
Source
extra_context(docs : Array(Completion::Document)) : self
Source
extra_context
Source
extra_context=(extra_context : Array(Completion::Document))
Source
history(messages : Array(Completion::Message)) : self
Source
history
Source
history=(history : Array(Completion::Message) | Nil)
Source
max_tokens(value : UInt64) : self
Source
max_tokens
Source
max_tokens=(max_tokens : UInt64 | Nil)
Source
merge(later : RequestPatch) : RequestPatch
Source
preamble(value : String) : self
Source
preamble
Source
preamble=(preamble : String | Nil)
Source
temperature(value : Float64) : self
Source
temperature
Source
temperature=(temperature : Float64 | Nil)
Source
tool_choice(value : Completion::ToolChoice) : self
Source
tool_choice
Source
tool_choice=(tool_choice : Completion::ToolChoice | Nil)
Source