refactor: update function signatures to include context and improve file handling #1599
This commit is contained in:
1 parent
215546a805
commit
77b100ba2b
18 files changed
+105
-52
No files matched your search
@@ -133,6 +133,8 @@ func Relay(c *gin.Context, relayFormat types.RelayFormat) {
|
||||
return
|
||||
}
|
||||
|
||||
common.SetContextKey(c, constant.ContextKeyTokenCountMeta, meta)
|
||||
|
||||
preConsumedQuota, newAPIError := service.PreConsumeQuota(c, priceData.ShouldPreConsumedQuota, relayInfo)
|
||||
if newAPIError != nil {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user