From 0497cdcfe6af5f50871413ed3feb0d5316a1ba00 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 10 Mar 2025 20:08:07 +0300 Subject: Refactor: pngmeta rewrite --- bot.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bot.go') diff --git a/bot.go b/bot.go index ec59db3..7d9fbe9 100644 --- a/bot.go +++ b/bot.go @@ -94,9 +94,11 @@ func fetchModelName() *models.LLMModels { return &llmModel } +// nolint func fetchDSBalance() *models.DSBalance { url := "https://api.deepseek.com/user/balance" method := "GET" + // nolint req, err := http.NewRequest(method, url, nil) if err != nil { logger.Warn("failed to create request", "error", err) @@ -119,6 +121,7 @@ func fetchDSBalance() *models.DSBalance { func sendMsgToLLM(body io.Reader) { choseChunkParser() + // nolint req, err := http.NewRequest("POST", cfg.CurrentAPI, body) req.Header.Add("Accept", "application/json") req.Header.Add("Content-Type", "application/json") -- cgit v1.2.3