feat: update models and prompts
shiny new model imported. - gpt-5 for daily use - o3 for complex questions (with high reasoning effort) Note: gpt-5 model does not support customized temperature, so it's removed from the api call parameters
This commit is contained in:
parent
d727d6b68e
commit
536393fe8f
6 changed files with 21 additions and 15 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/samber/lo"
|
||||
tele "gopkg.in/telebot.v3"
|
||||
|
||||
"git.gensokyo.cafe/kkyy/tgbot_misaka_5882f7/openai"
|
||||
|
|
@ -72,7 +71,7 @@ func handleTranslateBtn(c tele.Context) error {
|
|||
}
|
||||
|
||||
req := openai.ChatRequest{
|
||||
Model: openai.ModelGpt4O,
|
||||
Model: openai.ModelGpt5,
|
||||
Messages: []openai.ChatMessage{
|
||||
{
|
||||
Role: openai.ChatRoleSystem,
|
||||
|
|
@ -83,7 +82,7 @@ func handleTranslateBtn(c tele.Context) error {
|
|||
Content: payload,
|
||||
},
|
||||
},
|
||||
Temperature: lo.ToPtr(0.2),
|
||||
Temperature: nil, // lo.ToPtr(0.2),
|
||||
}
|
||||
|
||||
actionCh := setTyping(c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue