Skip to content

Commit 5f81767

Browse files
committed
不用去掉双引号
1 parent 112718a commit 5f81767

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

go-chat

7.72 MB
Binary file not shown.

go-chat.ext

7.72 MB
Binary file not shown.

gtp/gtp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func Completions(version int, conv_id string, who string, msg string) (string, e
132132
reply = strings.ReplaceAll(reply, "机器人神了", "我晕了不知道你在说什么")
133133
reply = strings.ReplaceAll(reply, "机器人", "小米粒")
134134

135-
reply = strings.ReplaceAll(reply, "\"", "")
135+
//reply = strings.ReplaceAll(reply, "\"", "")
136136

137137
fmt.Println("返回输出内容", reply)
138138
fmt.Println("返回的内容长度是:", len(reply))

handlers/user_msg_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (g *UserMessageHandler) ReplyText(msg *openwechat.Message) error {
4848
requestText = strings.Trim(msg.Content, "\n")
4949
//a, err := msg.Sender()
5050
//a.NickName
51-
reply, err := gtp.Completions(1, sender.NickName, sender.NickName, requestText)
51+
reply, err := gtp.Completions(3, sender.NickName, sender.NickName, requestText)
5252
if err != nil {
5353
log.Printf("gtp request error: %v \n", err)
5454
msg.ReplyText("我头晕了不知道你说什么,我一会发现了就去修。")

编译命令.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)