diff --git a/workers/ai.go b/workers/ai.go index 382a1e5..4abacac 100644 --- a/workers/ai.go +++ b/workers/ai.go @@ -83,7 +83,7 @@ func (a *AI) GetMsg() string { log.Println("PROMRT 未配置") PROMPT = "" } - println("PROMPT:", PROMPT) + // println("PROMPT:", PROMPT) requestBody := map[string]interface{}{ "model": MODEL, "messages": []map[string]string{{ diff --git a/workers/lsp.go b/workers/lsp.go index 0845549..ebd1ea5 100644 --- a/workers/lsp.go +++ b/workers/lsp.go @@ -18,10 +18,13 @@ func (a *Lsp) GetMsg() string { url := "https://api.lolicon.app/setu/v2?r18=0&size=small" resp, err := http.Get(url) if err != nil { - return "获取失败" + return "请求图片失败" } defer resp.Body.Close() budy, err := io.ReadAll(resp.Body) + if err != nil { + return "读取失败" + } var res map[string]interface{} err = json.Unmarshal(budy, &res) if err != nil {