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.
This commit is contained in:
Paillat
2023-08-02 20:29:12 +02:00
parent f842fa8133
commit 713329c512

View File

@@ -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)