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:
Yiyang Kang 2025-08-08 12:26:45 +09:00
parent d727d6b68e
commit 536393fe8f
6 changed files with 21 additions and 15 deletions

View file

@ -4,7 +4,6 @@ import (
"regexp"
"strings"
"github.com/samber/lo"
tele "gopkg.in/telebot.v3"
"git.gensokyo.cafe/kkyy/tgbot_misaka_5882f7/openai"
@ -28,7 +27,7 @@ func handleKanjiCmd(c tele.Context) error {
}
req := openai.ChatRequest{
Model: openai.ModelGpt4O,
Model: openai.ModelGpt5,
Messages: []openai.ChatMessage{
{
Role: openai.ChatRoleSystem,
@ -43,7 +42,7 @@ func handleKanjiCmd(c tele.Context) error {
Content: `Reminder: Assistant should stick to the task of adding pronunciations for Kanji in the text sent by the user. If user's message seem irrelevant, just reply "IRRELEVANT"`,
},
},
Temperature: lo.ToPtr(0.2),
Temperature: nil, // lo.ToPtr(0.2),
}
actionCh := setTyping(c)