sttp.openai.requests.embeddings.EmbeddingsRequestBody.EmbeddingsBody
See theEmbeddingsBody companion object
case class EmbeddingsBody(model: EmbeddingsModel, input: EmbeddingsInput, user: Option[String], dimensions: Option[Int])
Value parameters
- dimensions
-
The number of dimensions for the embeddings. Only supported in text-embedding-3 and later models.
- input
-
Input text to get embeddings for, encoded as a string or array of tokens.
- model
-
ID of the EmbeddingsModel to use.
- user
-
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article