From 8f50f485a9e09b3fe8487d2b67c2a3d87b6ff0b1 Mon Sep 17 00:00:00 2001 From: "Laisky.Cai" Date: Sun, 16 Mar 2025 14:34:50 +0000 Subject: [PATCH] fix: update ImageUsdPerPic calculation to use QuotaPerUsd for accurate billing --- relay/billing/ratio/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/billing/ratio/model.go b/relay/billing/ratio/model.go index 127ca497..bfb9af5d 100644 --- a/relay/billing/ratio/model.go +++ b/relay/billing/ratio/model.go @@ -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