chore: docker

This commit is contained in:
Zheng Kai
2023-09-07 14:59:14 +08:00
parent 3c76c9f1b2
commit 0fc7868b71
2 changed files with 5 additions and 7 deletions

View File

@@ -2,7 +2,6 @@ package metrics
import (
"net/http"
"project/zj"
"strconv"
)
@@ -34,8 +33,7 @@ func Limit(h http.Header) {
if h.Get(`x-ratelimit-limit-tokens`) != `` {
token := h.Get(`x-ratelimit-remaining-tokens`)
limitToken.WithLabelValues(model).Set(strToFloat(token))
zj.J(`limit time`, model, h.Get(`x-ratelimit-reset-requests`), h.Get(`x-ratelimit-reset-tokens`))
// zj.J(`limit time`, model, h.Get(`x-ratelimit-reset-requests`), h.Get(`x-ratelimit-reset-tokens`))
}
}