effect-io-ai

Package: @effect/ai-openai-compat
Module: OpenAiClient

OpenAiClient.CreateEmbeddingResponse

Successful response payload returned by the embeddings endpoint.

Signature

type CreateEmbeddingResponse = {
  readonly data: ReadonlyArray<Embedding>
  readonly model: string
  readonly object?: "list" | undefined
  readonly usage?: {
    readonly prompt_tokens: number
    readonly total_tokens: number
  } | undefined
}

Source

Since v4.0.0