🐛 fix(config.py): add missing newline at the end of the file

🐛 fix(makeprompt.py): remove unnecessary file close statement after reading prompt file
 feat(config.py): add gpt_3_5_turbo_prompt variable to store the content of the prompt file
 feat(makeprompt.py): use gpt_3_5_turbo_prompt variable instead of reading the prompt file again
This commit is contained in:
2023-08-15 10:44:13 +02:00
parent 553d259bc7
commit b139e40f8a
2 changed files with 6 additions and 4 deletions

View File

@@ -100,3 +100,6 @@ curs_premium.execute(
curs_premium.execute(
"""CREATE TABLE IF NOT EXISTS channels (guild_id text, channel0 text, channel1 text, channel2 text, channel3 text, channel4 text)"""
)
with open(os.path.abspath(os.path.dirname(__file__), "./prompts/gpt-3.5-turbo.txt"), "r", encoding="utf-8") as file:
gpt_3_5_turbo_prompt = file.read()