EmbeddingRequest

@Serializable
data class EmbeddingRequest(val model: String, val prompt: String)(source)

Represents a request to generate an embedding using a specific model.

The request includes the model to be used and the prompt text for which the embedding is to be generated.

Constructors

Link copied to clipboard
constructor(model: String, prompt: String)

Properties

Link copied to clipboard

The identifier of the model to be used for generating the embedding.

Link copied to clipboard

The input text for which the embedding is to be generated.