Use newer model cause Discord be bussin'
This commit is contained in:
@ -3,7 +3,8 @@ package openai
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.ewnix.net/phlux/g/discord-gpt-bot/config"
|
||||
"discord-gpt-bot/config"
|
||||
|
||||
"github.com/sashabaranov/go-openai"
|
||||
)
|
||||
|
||||
@ -26,8 +27,9 @@ func Ask(messages []Message) (string, error) {
|
||||
resp, err := client.CreateChatCompletion(
|
||||
context.Background(),
|
||||
openai.ChatCompletionRequest{
|
||||
Model: openai.GPT4,
|
||||
Messages: chatHistory,
|
||||
Model: "gpt-4.1",
|
||||
Messages: chatHistory,
|
||||
MaxTokens: 600,
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user