Use GPT4o instead of GPT4TurboPreview
This commit is contained in:
@ -24,7 +24,6 @@ func GenerateGPT4Response(prompt string, author string) (string, error) {
|
|||||||
return "", fmt.Errorf("prompt is too long")
|
return "", fmt.Errorf("prompt is too long")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add additional information to the system message
|
// Add additional information to the system message
|
||||||
var additionalInfo string
|
var additionalInfo string
|
||||||
switch author {
|
switch author {
|
||||||
@ -65,7 +64,7 @@ func GenerateGPT4Response(prompt string, author string) (string, error) {
|
|||||||
resp, err := client.CreateChatCompletion(
|
resp, err := client.CreateChatCompletion(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
openai.ChatCompletionRequest{
|
openai.ChatCompletionRequest{
|
||||||
Model: openai.GPT4TurboPreview,
|
Model: openai.GPT4o,
|
||||||
Messages: []openai.ChatCompletionMessage{
|
Messages: []openai.ChatCompletionMessage{
|
||||||
{
|
{
|
||||||
Role: openai.ChatMessageRoleSystem,
|
Role: openai.ChatMessageRoleSystem,
|
||||||
|
Reference in New Issue
Block a user