Skip to content

Commit

Permalink
chore(release): bumped version to v1.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Apr 13, 2023
1 parent fa9a236 commit 7ad9def
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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("")
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

// Version is the version of lighthouse
var Version = "1.7.9"
var Version = "1.7.10"

0 comments on commit 7ad9def

Please sign in to comment.