struct

Crig::Providers::Ollama::OllamaCompletionRequest

Inherits Struct < Value < Object

Constructors

from_request(default_model : String, req : Crig::Completion::Request::CompletionRequest) : self
Source
new(model : String, messages : Array(Message), temperature : Float64 | Nil = nil, tools : Array(ToolDefinition) = [] of ToolDefinition, stream : Bool = false, think : Bool | String | Nil = nil, max_tokens : Int64 | Nil = nil, keep_alive : String | Nil = nil, format : JSON::Any | Nil = nil, options : JSON::Any = JSON.parse("{\"temperature\":null}"))
Source

Instance methods

format
Source
keep_alive
Source
max_tokens
Source
messages
Source
model
Source
options
Source
stream
Source
stream?
Source
temperature
Source
think
Source
think?
Source
to_json(json : JSON::Builder) : Nil
Source
tools
Source