pub struct CreateEmbeddingResponse {
pub data: Vec<Embedding>,
pub model: String,
pub object: String,
pub usage: CreateEmbeddingResponseUsage,
}
Expand description
§on openapi.yaml
CreateEmbeddingResponse:
type: object
properties:
data:
type: array
description: The list of embeddings generated by the model.
items:
$ref: "#/components/schemas/Embedding"
model:
type: string
description: The name of the model used to generate the embedding.
object:
type: string
description: The object type, which is always "list".
enum:
- list
x-stainless-const: true
usage:
type: object
description: The usage information for the request.
properties:
prompt_tokens:
type: integer
description: The number of tokens used by the prompt.
total_tokens:
type: integer
description: The total number of tokens used by the request.
required:
- prompt_tokens
- total_tokens
required:
- object
- model
- data
- usage
Fields§
§data: Vec<Embedding>
The list of embeddings generated by the model.
model: String
The name of the model used to generate the embedding.
object: String
The object type, which is always "list".
usage: CreateEmbeddingResponseUsage
Trait Implementations§
Source§impl Debug for CreateEmbeddingResponse
impl Debug for CreateEmbeddingResponse
Source§impl<'de> Deserialize<'de> for CreateEmbeddingResponse
impl<'de> Deserialize<'de> for CreateEmbeddingResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateEmbeddingResponse
impl RefUnwindSafe for CreateEmbeddingResponse
impl Send for CreateEmbeddingResponse
impl Sync for CreateEmbeddingResponse
impl Unpin for CreateEmbeddingResponse
impl UnwindSafe for CreateEmbeddingResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more