From 491013e27a9d0176e5c648e304199fa9472b5ea2 Mon Sep 17 00:00:00 2001 From: CaIon Date: Fri, 15 Aug 2025 18:43:08 +0800 Subject: [PATCH] refactor: comment out SetContextKey to prevent token count meta setting --- controller/relay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/relay.go b/controller/relay.go index f0d84ea0..d48db1de 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -133,7 +133,7 @@ func Relay(c *gin.Context, relayFormat types.RelayFormat) { return } - common.SetContextKey(c, constant.ContextKeyTokenCountMeta, meta) + // common.SetContextKey(c, constant.ContextKeyTokenCountMeta, meta) preConsumedQuota, newAPIError := service.PreConsumeQuota(c, priceData.ShouldPreConsumedQuota, relayInfo) if newAPIError != nil {