mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-24 19:06:38 +08:00
chore: 删除无用代码
This commit is contained in:
parent
71547849bc
commit
21839ed13b
@ -8,7 +8,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"one-api/common"
|
"one-api/common"
|
||||||
"one-api/dto"
|
"one-api/dto"
|
||||||
@ -114,7 +113,6 @@ func RelayImageHelper(c *gin.Context, relayMode int) *dto.OpenAIErrorWithStatusC
|
|||||||
// per 1 modelRatio = $0.04 / 16
|
// per 1 modelRatio = $0.04 / 16
|
||||||
modelPrice = 0.0025 * modelRatio
|
modelPrice = 0.0025 * modelRatio
|
||||||
}
|
}
|
||||||
log.Printf("modelPrice: %f", modelPrice)
|
|
||||||
groupRatio := common.GetGroupRatio(group)
|
groupRatio := common.GetGroupRatio(group)
|
||||||
userQuota, err := model.CacheGetUserQuota(userId)
|
userQuota, err := model.CacheGetUserQuota(userId)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user