chore: docker

This commit is contained in:
Zheng Kai committed 2023-09-07 15:03:56 +08:00
1 parent 3c76c9f1b2
commit 0fc7868b71
2 files changed
+5 -7

No files matched your search

+1 -3
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`))
}
}