update model

This commit is contained in:
unintendedfraud
2023-05-06 12:43:51 +02:00
parent a8f2e325dd
commit eef2454d3f
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -1,7 +1,6 @@
package handlers
import (
"fmt"
"hal/env"
"hal/openai"
"log"
@@ -26,8 +25,6 @@ func OnMessageCreated(s *discordgo.Session, m *discordgo.MessageCreate) {
if _, err = s.ChannelMessageSend(m.ChannelID, aiResponse); err != nil {
log.Panicf("failed to send the response [%s] to the discord channel [%s]", aiResponse, err.Error())
}
} else {
fmt.Println("### no response ##")
}
return
+1 -1
View File
@@ -21,7 +21,7 @@ func NewClient(token string) *Client {
func (c Client) Completions(prompt string) (*CompletionResponse, error) {
body := &CompletionPayload{
Model: "gpt-3.5-turbo",
Model: "text-davinci-003",
Prompt: cleanPrompt(prompt),
MaxTokens: 100,
Temperature: 1,