update model
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user