From 86ca533f7ab44a719210e83db2822e388c7980ee Mon Sep 17 00:00:00 2001 From: CalciumIon <1808837298@qq.com> Date: Tue, 16 Jul 2024 23:40:52 +0800 Subject: [PATCH] fix: fix bug --- relay/relay-text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/relay-text.go b/relay/relay-text.go index 0438eba..9e1b9b7 100644 --- a/relay/relay-text.go +++ b/relay/relay-text.go @@ -300,7 +300,7 @@ func postConsumeQuota(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, modelN } totalTokens := promptTokens + completionTokens var logContent string - if modelPrice == -1 { + if !usePrice { logContent = fmt.Sprintf("模型倍率 %.2f,分组倍率 %.2f,补全倍率 %.2f", modelRatio, groupRatio, completionRatio) } else { logContent = fmt.Sprintf("模型价格 %.2f,分组倍率 %.2f", modelPrice, groupRatio)