Skip to content

Commit

Permalink
fix: 修复在群聊中无法使用prompt的问题 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf authored Mar 19, 2023
1 parent 9c25a64 commit b1392c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func Start() {
logger.Warning(fmt.Errorf("send message error: %v", err))
}
} else {
msgObj.Text.Content = process.GeneratePrompt(msgObj.Text.Content)
msgObj.Text.Content = process.GeneratePrompt(strings.TrimSpace(msgObj.Text.Content))
logger.Info(fmt.Sprintf("dingtalk callback parameters: %#v", msgObj))
err = process.ProcessRequest(*msgObj)
if err != nil {
Expand Down

0 comments on commit b1392c1

Please sign in to comment.