From 35c230fbd8c664556de408177043a518e849b69d Mon Sep 17 00:00:00 2001 From: everpcpc Date: Sun, 30 Apr 2023 08:01:36 +0000 Subject: [PATCH] fix: change temperature to 0 for ai --- telegram/checks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegram/checks.go b/telegram/checks.go index 16c2c67..933e63b 100644 --- a/telegram/checks.go +++ b/telegram/checks.go @@ -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 := ""