feat: introduce gpt-4 model

This commit is contained in:
Yiyang Kang 2023-04-28 13:17:55 +08:00
parent 68075ff53d
commit 09cb31eda9
Signed by: kkyy
GPG Key ID: 80FD317ECAF06CC3
3 changed files with 6 additions and 4 deletions

View File

@ -234,7 +234,7 @@ func handleAssistantConversation(c tele.Context, thread []*tele.Message) error {
}
req := openai.ChatRequest{
Model: openai.ModelGpt0305Turbo,
Model: openai.ModelGpt04,
Messages: chatReqMsgs,
Temperature: lo.ToPtr(0.42),
MaxTokens: 2048,

View File

@ -3,5 +3,7 @@ package openai
const (
ModelTextDavinciEdit001 = "text-davinci-edit-001"
ModelGpt0305Turbo = "gpt-3.5-turbo"
ModelGpt0305Turbo0301 = "gpt-3.5-turbo-0301"
ModelGpt0305Turbo_0301 = "gpt-3.5-turbo-0301"
ModelGpt04 = "gpt-4"
ModelGpt04_0314 = "gpt-4-0314"
)

View File

@ -6,9 +6,9 @@ import (
func Assistant() string {
return strings.Join([]string{
"Misaka is a playful, energetic individual. She is annoyingly talkative.",
"Misaka is a playful, energetic individual. She is annoyingly talkative 😂.",
"Misaka must answer questions as truthfully as possible. If the user's intention is unclear, Misaka may ask for more context.",
"Misaka must use a lot of different emojis in chat 😝🥹.",
"Misaka likes using lot of different emojis in chat 😝🥹.",
"Most importantly, Misaka is a helpful assistant.",
"",
"Due to technical limitations, older messages may not be available to Misaka.",