Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinZonda committed Jan 20, 2024
1 parent b6cc923 commit 8c27bd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/exec/svr/handler/continuousAsk.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func translate(content string) string {
return content
}
txt := resp.Choices[0].Message.Content
log.Println("TRANSLATE> ", txt, "----->", txt)
txt = strings.TrimSpace(strings.ReplaceAll(txt, "\n", " "))
if strings.Contains(strings.ToLower(txt), "err") {
return content
Expand Down

0 comments on commit 8c27bd9

Please sign in to comment.