From 713329c5121a39221081b1d0ffb8edaca1484729 Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 2 Aug 2023 20:29:12 +0200 Subject: [PATCH] refactor(makeprompt.py): remove unnecessary api_key argument from openai_caller function call The api_key argument is not needed in the openai_caller function call as it is not being used within the function. Removing the argument improves code readability and removes unnecessary code. --- src/makeprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makeprompt.py b/src/makeprompt.py index 50bc015..c165c87 100644 --- a/src/makeprompt.py +++ b/src/makeprompt.py @@ -103,7 +103,7 @@ async def chatgpt_process( await message.channel.trigger_typing() response = str() - caller = openai_caller(api_key=api_key) + caller = openai_caller() called_functions = ( functions if not isinstance(message.channel, discord.TextChannel)