class OpenRouter::EmbeddingRequest

Overview

Request body for POST /embeddings

Defined in:

openrouter/types/embedding_request.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def dimensions : Int32 | Nil #

[View source]
def dimensions=(dimensions : Int32 | Nil) #

[View source]
def encoding_format : EmbeddingEncodingFormat | Nil #

[View source]
def encoding_format=(encoding_format : EmbeddingEncodingFormat | Nil) #

[View source]
def input : String | Array(String) #

[View source]
def input=(input : String | Array(String)) #

[View source]
def model : String #

[View source]
def model=(model : String) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def to_json : String #

[View source]
def user : String | Nil #

[View source]
def user=(user : String | Nil) #

[View source]