feat: introduce gpt-4 model
This commit is contained in:
parent
68075ff53d
commit
09cb31eda9
|
@ -234,7 +234,7 @@ func handleAssistantConversation(c tele.Context, thread []*tele.Message) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
req := openai.ChatRequest{
|
req := openai.ChatRequest{
|
||||||
Model: openai.ModelGpt0305Turbo,
|
Model: openai.ModelGpt04,
|
||||||
Messages: chatReqMsgs,
|
Messages: chatReqMsgs,
|
||||||
Temperature: lo.ToPtr(0.42),
|
Temperature: lo.ToPtr(0.42),
|
||||||
MaxTokens: 2048,
|
MaxTokens: 2048,
|
||||||
|
|
|
@ -3,5 +3,7 @@ package openai
|
||||||
const (
|
const (
|
||||||
ModelTextDavinciEdit001 = "text-davinci-edit-001"
|
ModelTextDavinciEdit001 = "text-davinci-edit-001"
|
||||||
ModelGpt0305Turbo = "gpt-3.5-turbo"
|
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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
|
|
||||||
func Assistant() string {
|
func Assistant() string {
|
||||||
return strings.Join([]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 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.",
|
"Most importantly, Misaka is a helpful assistant.",
|
||||||
"",
|
"",
|
||||||
"Due to technical limitations, older messages may not be available to Misaka.",
|
"Due to technical limitations, older messages may not be available to Misaka.",
|
||||||
|
|
Loading…
Reference in New Issue