mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-18 01:26:37 +08:00
fix: update ImageUsdPerPic calculation to use QuotaPerUsd for accurate billing
This commit is contained in:
parent
c9bc075b04
commit
8f50f485a9
@ -22,7 +22,7 @@ const (
|
||||
KiloRmb float64 = KiloTokensUsd / USD2RMB
|
||||
// MilliRmb multiply by the RMB price per 1 million tokens to get the quota cost per token
|
||||
MilliRmb float64 = MilliTokensUsd / USD2RMB
|
||||
ImageUsdPerPic float64 = MilliTokensUsd / 1000
|
||||
ImageUsdPerPic float64 = QuotaPerUsd / 1000
|
||||
)
|
||||
|
||||
var modelRatioLock sync.RWMutex
|
||||
|
Loading…
Reference in New Issue
Block a user