diff --git a/assistant.go b/assistant.go index 6b0cce5..4e89643 100644 --- a/assistant.go +++ b/assistant.go @@ -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, diff --git a/openai/models.go b/openai/models.go index 957190e..0749fa8 100644 --- a/openai/models.go +++ b/openai/models.go @@ -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" ) diff --git a/openai/prompts/prompts.go b/openai/prompts/prompts.go index 03aa02b..df23bf6 100644 --- a/openai/prompts/prompts.go +++ b/openai/prompts/prompts.go @@ -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.",