This commit is contained in:
1 parent
d6931d059b
commit
532b60f753
8 files changed
+240
-3
No files matched your search
@@ -244,6 +244,8 @@ func relayHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
|
||||
if err != nil {
|
||||
common.SysError("Error consuming token remain quota: " + err.Error())
|
||||
}
|
||||
userId := c.GetInt("id")
|
||||
model.RecordLog(userId, model.LogTypeConsume, fmt.Sprintf("使用模型 %s 消耗 %d 点额度", textRequest.Model, quota))
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user