Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::XAI::XAICompletionRequest
Inherits
Struct
<
Value
<
Object
Constructors
from_request
(default_model :
String
, request :
Crig::Completion::Request::CompletionRequest
) : self
Source
new
(model :
String
, input :
Array
(
Message
), temperature :
Float64
|
Nil
= nil, max_output_tokens :
Int64
|
Nil
= nil, tools :
Array
(
ToolDefinition
) = [] of
ToolDefinition
, tool_choice :
Crig::Providers::OpenAI::Chat::ToolChoice
|
Nil
= nil, additional_params :
JSON::Any
|
Nil
= nil)
Source
Instance methods
additional_params
Source
input
Source
max_output_tokens
Source
model
Source
temperature
Source
to_json_value
Source
tool_choice
Source
tools
Source