Explorar o código

refactor: comment out SetContextKey to prevent token count meta setting

CaIon hai 6 meses
pai
achega
491013e27a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {