Skip to content

EmbeddingsResponse

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

EmbeddingsResponse

The response sent by the Embeddings endpoint.

public struct EmbeddingsResponse: Codable 

Inheritance

Codable

Properties

object

The OpenAIObject object type of this response.

public let object: OpenAIObject

data

The parameter containing the embedding data.

public let data: [EmbeddingsData]

model

The model used to generate the embeddings.

public let model: String

usage

The amount of tokens used by the embeddings.

public let usage: EmbeddingsUsage
Types
Global Functions
Clone this wiki locally