change gpt4 to use gpt-4o, cuts costs in half
This commit is contained in:
parent
65e43dacad
commit
ebedb0962d
2 changed files with 6 additions and 5 deletions
|
|
@ -267,7 +267,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-turbo-preview")
|
||||
content = await self.answer_question(prompt, model="gpt-4o")
|
||||
if title in content[:len(title)]:
|
||||
content = content.replace(title, '', 1)
|
||||
with open(filepath, 'w') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue