Add Token Usage to Embeddings (#43)

This commit is contained in:
Matt Trefilek
2022-12-15 12:15:28 -06:00
committed by GitHub
parent fa5319e59a
commit 23925ad36e

View File

@@ -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.