feat: adjust prompt for translation
This commit is contained in:
parent
899491e867
commit
ed46c2b274
2 changed files with 15 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue