Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystal-mistral
main
APIError
ChatRequest
ChatResponse
Choice
CodeRequest
CrystalMistral
Client
ClientBuilder
EmbeddingObject
EmbeddingRequest
EmbeddingResponse
Message
Messages
Role
Usage
UsageInfo
ValidationDetails
ValidationError
ValidationSubError
Generated using Crystal 1.16.3
2025-06-23 11:23:07 UTC
struct
EmbeddingRequest
EmbeddingRequest
Struct
Value
Object
Included Modules
JSON::Serializable
Defined in:
crystal-mistral/types.cr
Constructors
.new
(model : String, input : Array(String))
.new
(pull : JSON::PullParser)
Instance Method Summary
#input
: Array(String)
#input=
(input : Array(String))
#model
: String
#model=
(model : String)
Constructor Detail
def self.
new
(model : String, input : Array(String))
#
[
View source
]
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
input
: Array(String)
#
[
View source
]
def
input=
(input : Array(String))
#
[
View source
]
def
model
: String
#
[
View source
]
def
model=
(model : String)
#
[
View source
]