Skip to content

Commit

Permalink
fix: change temperature to 0 for ai
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Apr 30, 2023
1 parent ec2fa3e commit 35c230f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions telegram/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ func checkOpenAI(b *Bot, message *tgbotapi.Message) {
submessage = submessage.ReplyToMessage
}
resp, err := b.ai.CreateChatCompletion(context.TODO(), openai.ChatCompletionRequest{
Model: openai.GPT3Dot5Turbo,
Messages: chatMessages,
Model: openai.GPT3Dot5Turbo,
Messages: chatMessages,
Temperature: 0.0,
})

content := ""
Expand Down

0 comments on commit 35c230f

Please sign in to comment.