Skip to content

struct OpenAI::EmbeddingRequest
inherits Struct #

Included modules

JSON::Serializable

Constructors#

.new(input : Array(String) | Array(Array(Int32)), model : String, user : String | Nil = nil, encoding_format : EmbeddingEncodingFormat | Nil = nil, dimensions : Int32 | Nil = nil)#

View source

.new(pull : JSON::PullParser)#

View source

Methods#

#clone#

View source

#copy_with(input _input = @input, model _model = @model, user _user = @user, encoding_format _encoding_format = @encoding_format, dimensions _dimensions = @dimensions)#

View source

#dimensions : Int32 | ::Nil#

#encoding_format : EmbeddingEncodingFormat | ::Nil#

#input : Array(String) | Array(Array(Int32))#

#model : String#

#user : String | ::Nil#