Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::OpenRouter::CompletionResponse
Inherits
Struct
<
Value
<
Object
Constructors
from_json
(value :
String
) : self
Source
from_json_value
(value :
JSON::Any
) : self
Source
new
(id :
String
, object :
String
, created :
Int64
, model :
String
, choices :
Array
(
Choice
), system_fingerprint :
String
|
Nil
= nil, usage :
Usage
|
Nil
= nil)
Source
Instance methods
choices
Source
created
Source
id
Source
model
Source
object
Source
system_fingerprint
Source
to_completion_response
ameba:disable Metrics/CyclomaticComplexity
Source
usage
Source