fix: fix used amount not correct
This commit is contained in:
1 parent
27d33d2392
commit
9f94cfd0c7
1 file changed
+3
@@ -48,6 +48,9 @@ func GetUsage(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
amount := float64(quota)
|
||||
if common.DisplayInCurrencyEnabled {
|
||||
amount /= common.QuotaPerUnit
|
||||
}
|
||||
usage := OpenAIUsageResponse{
|
||||
Object: "list",
|
||||
TotalUsage: amount,
|
||||
|
||||
Reference in new issue
Block a user