Skip to content

Commit

Permalink
fix: record total tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Feb 10, 2025
1 parent ce497ed commit 8dfcf08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/aiproxy/model/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func RecordConsumeLog(
Code: code,
PromptTokens: promptTokens,
CompletionTokens: completionTokens,
TotalTokens: promptTokens + completionTokens,
TokenID: tokenID,
TokenName: tokenName,
Model: modelName,
Expand Down

0 comments on commit 8dfcf08

Please sign in to comment.