From a1a1886e17bc44d3760f5015dbdd6f0a67f4c541 Mon Sep 17 00:00:00 2001 From: phixxy Date: Thu, 8 Feb 2024 02:25:25 -0800 Subject: [PATCH] changed gpt4 to gpt4 turbo to save $$$ --- extensions/chatgpt.py | 2 +- extensions/phixxycom.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index 32268e5..69e2739 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -187,7 +187,7 @@ class ChatGPT(commands.Cog): if ctx.author.get_role(self.premium_role): await ctx.send("One moment, let me think...") question = ctx.message.content.split(" ", maxsplit=1)[1] - answer = await self.answer_question(question, "gpt-4") + answer = await self.answer_question(question, "gpt-4-turbo-preview") chunks = [answer[i:i+1999] for i in range(0, len(answer), 1999)] for chunk in chunks: await ctx.send(chunk) diff --git a/extensions/phixxycom.py b/extensions/phixxycom.py index 7fdbb06..2128434 100644 --- a/extensions/phixxycom.py +++ b/extensions/phixxycom.py @@ -273,7 +273,7 @@ class PhixxyCom(commands.Cog): title_prompt = 'generate an absurd essay title about ' + topic title = await self.answer_question(title_prompt, model="gpt-3.5-turbo") prompt = 'Write a satirical essay with a serious tone titled: "' + title + '". Do not label parts of the essay.' - content = await self.answer_question(prompt, model="gpt-4") + content = await self.answer_question(prompt, model="gpt-4-turbo-preview") if title in content[:len(title)]: content = content.replace(title, '', 1) content = f"

{content}

"