mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-20 01:16:36 +08:00
fix: image relay quota
This commit is contained in:
parent
ae00a99cf5
commit
70491ea1bb
@ -170,8 +170,8 @@ func ImageHelper(c *gin.Context, relayMode int) *dto.OpenAIErrorWithStatusCode {
|
||||
}
|
||||
|
||||
usage := &dto.Usage{
|
||||
PromptTokens: relayInfo.PromptTokens,
|
||||
TotalTokens: relayInfo.PromptTokens,
|
||||
PromptTokens: imageRequest.N,
|
||||
TotalTokens: imageRequest.N,
|
||||
}
|
||||
|
||||
quality := "standard"
|
||||
|
Loading…
Reference in New Issue
Block a user