Skip to content

Commit

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

0 comments on commit 4d17c9f

Please sign in to comment.