refactor: comment out SetContextKey to prevent token count meta setting

This commit is contained in:
CaIon
2025-08-15 18:43:08 +08:00
parent 0bb43aa464
commit 491013e27a

View File

@@ -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 {