Преглед изворни кода

refactor: comment out SetContextKey to prevent token count meta setting

CaIon пре 6 месеци
родитељ
комит
491013e27a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controller/relay.go

+ 1 - 1
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 {