Ver Fonte

refactor: comment out SetContextKey to prevent token count meta setting

CaIon há 6 meses atrás
pai
commit
491013e27a
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {