修改额度汇率的展现形式

This commit is contained in:
quzard 2023-06-20 21:08:12 +08:00
parent 5108f3c98f
commit e609d8027f

View File

@ -49,7 +49,7 @@ func GetUsage(c *gin.Context) {
}
amount := float64(quota)
if common.DisplayInCurrencyEnabled {
amount /= common.QuotaPerUnit
amount = amount / 1000 * common.QuotaPerUnit
}
usage := OpenAIUsageResponse{
Object: "list",