From 739cdb710dd425ddcb48cf4e5177b1b83a9c7969 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 20 Jul 2024 13:01:08 -0700 Subject: [PATCH] use gpt-4.0-mini instead of 3.5 turbo --- cogs/phixxycom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/phixxycom.py b/cogs/phixxycom.py index ad8788b..84c23d4 100644 --- a/cogs/phixxycom.py +++ b/cogs/phixxycom.py @@ -192,7 +192,7 @@ class PhixxyCom(commands.Cog): except: self.logger.exception("Something went wrong in upload_ftp_ai_images") - async def answer_question(self, topic, model="gpt-3.5-turbo"): + async def answer_question(self, topic, model="gpt-4o-mini"): headers = { 'Content-Type': 'application/json', 'Authorization': f'Bearer {os.getenv("openai.api_key")}', @@ -265,7 +265,7 @@ class PhixxyCom(commands.Cog): topic = await self.answer_question(question) self.logger.info("Writing blogpost") title_prompt = 'generate an absurd essay title about ' + topic - title = await self.answer_question(title_prompt, model="gpt-3.5-turbo") + title = await self.answer_question(title_prompt, model="gpt-4o-mini") 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-4o") if title in content[:len(title)]: