main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import List
 4from typing_extensions import Literal
 5
 6from .._models import BaseModel
 7from .embedding import Embedding
 8
 9__all__ = ["CreateEmbeddingResponse", "Usage"]
10
11
12class Usage(BaseModel):
13    prompt_tokens: int
14    """The number of tokens used by the prompt."""
15
16    total_tokens: int
17    """The total number of tokens used by the request."""
18
19
20class CreateEmbeddingResponse(BaseModel):
21    data: List[Embedding]
22    """The list of embeddings generated by the model."""
23
24    model: str
25    """The name of the model used to generate the embedding."""
26
27    object: Literal["list"]
28    """The object type, which is always "list"."""
29
30    usage: Usage
31    """The usage information for the request."""