use gpt-4.0-mini instead of 3.5 turbo
This commit is contained in:
parent
42ae73030f
commit
739cdb710d
1 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ class PhixxyCom(commands.Cog):
|
||||||
except:
|
except:
|
||||||
self.logger.exception("Something went wrong in upload_ftp_ai_images")
|
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 = {
|
headers = {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Authorization': f'Bearer {os.getenv("openai.api_key")}',
|
'Authorization': f'Bearer {os.getenv("openai.api_key")}',
|
||||||
|
|
@ -265,7 +265,7 @@ class PhixxyCom(commands.Cog):
|
||||||
topic = await self.answer_question(question)
|
topic = await self.answer_question(question)
|
||||||
self.logger.info("Writing blogpost")
|
self.logger.info("Writing blogpost")
|
||||||
title_prompt = 'generate an absurd essay title about ' + topic
|
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.'
|
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")
|
content = await self.answer_question(prompt, model="gpt-4o")
|
||||||
if title in content[:len(title)]:
|
if title in content[:len(title)]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue