From 451547553be05cbb9a21d9d835b38269ee2662df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Tue, 14 May 2024 17:44:00 +0200 Subject: [PATCH] Use GPT4o instead of GPT4TurboPreview --- openai.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openai.go b/openai.go index a51df2f..0ca1697 100644 --- a/openai.go +++ b/openai.go @@ -24,7 +24,6 @@ func GenerateGPT4Response(prompt string, author string) (string, error) { return "", fmt.Errorf("prompt is too long") } - // Add additional information to the system message var additionalInfo string switch author { @@ -65,7 +64,7 @@ func GenerateGPT4Response(prompt string, author string) (string, error) { resp, err := client.CreateChatCompletion( context.Background(), openai.ChatCompletionRequest{ - Model: openai.GPT4TurboPreview, + Model: openai.GPT4o, Messages: []openai.ChatCompletionMessage{ { Role: openai.ChatMessageRoleSystem,