feat: adjust prompt for translation

This commit is contained in:
Yiyang Kang 2023-03-08 04:25:20 +08:00
parent 899491e867
commit ed46c2b274
2 changed files with 15 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import (
"regexp"
"strings"
"github.com/samber/lo"
tele "gopkg.in/telebot.v3"
"git.gensokyo.cafe/kkyy/tgbot_misaka_5882f7/openai"
@ -91,6 +92,7 @@ func handleTranslateBtn(c tele.Context) error {
Content: payload,
},
},
Temperature: lo.ToPtr(0.6),
}
resp, err := ai.ChatCompletion(req)