Skip to content

Commit 23925ad

Browse files
authored
Add Token Usage to Embeddings (#43)
1 parent fa5319e commit 23925ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

embeddings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ type EmbeddingResponse struct {
109109
Object string `json:"object"`
110110
Data []Embedding `json:"data"`
111111
Model EmbeddingModel `json:"model"`
112+
Usage Usage `json:"usage"`
112113
}
113114

114115
// EmbeddingRequest is the input to a Create embeddings request.

0 commit comments

Comments
 (0)