From 7ad9defc6bf693ed4e50188d12278104ad141fec Mon Sep 17 00:00:00 2001 From: whatwewant Date: Thu, 13 Apr 2023 12:26:20 +0800 Subject: [PATCH] chore(release): bumped version to v1.7.10 --- server.go | 11 ++--------- version.go | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/server.go b/server.go index 9dbed3d..5c9419c 100644 --- a/server.go +++ b/server.go @@ -8,7 +8,6 @@ import ( "github.com/go-zoox/chatbot-feishu" "github.com/go-zoox/core-utils/regexp" "github.com/go-zoox/core-utils/strings" - "github.com/go-zoox/debug" openaiclient "github.com/go-zoox/openai-client" "github.com/go-zoox/proxy" "github.com/go-zoox/proxy/utils/rewriter" @@ -181,12 +180,10 @@ func ServeFeishuBot(cfg *FeishuBotConfig) (err error) { tryToGetBotInfo() }() - // if debug.IsDebugMode() { fmt.PrintJSON(map[string]interface{}{ "version": Version, "cfg": cfg, }) - // } if cfg.SiteURL != "" { logger.Infof("") @@ -372,9 +369,7 @@ func ServeFeishuBot(cfg *FeishuBotConfig) (err error) { } go func() { - if debug.IsDebugMode() { - logger.Infof("%s 问 ChatGPT:%s", user.User.Name, question) - } + logger.Debugf("%s 问 ChatGPT:%s", user.User.Name, question) var err error @@ -424,9 +419,7 @@ func ServeFeishuBot(cfg *FeishuBotConfig) (err error) { return } - if debug.IsDebugMode() { - logger.Infof("ChatGPT 答 %s:%s", user.User.Name, answer) - } + logger.Debugf("ChatGPT 答 %s:%s", user.User.Name, answer) responseMessage := string(answer) // if request.IsGroupChat() { diff --git a/version.go b/version.go index a7000ff..ad803ee 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package main // Version is the version of lighthouse -var Version = "1.7.9" +var Version = "1.7.10"