소스 검색

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 {