Add Token Usage to Embeddings (#43)
This commit is contained in:
@@ -109,6 +109,7 @@ type EmbeddingResponse struct {
|
|||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
Data []Embedding `json:"data"`
|
Data []Embedding `json:"data"`
|
||||||
Model EmbeddingModel `json:"model"`
|
Model EmbeddingModel `json:"model"`
|
||||||
|
Usage Usage `json:"usage"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EmbeddingRequest is the input to a Create embeddings request.
|
// EmbeddingRequest is the input to a Create embeddings request.
|
||||||
|
|||||||
Reference in New Issue
Block a user