mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
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:
@@ -103,7 +103,7 @@ async def chatgpt_process(
|
|||||||
await message.channel.trigger_typing()
|
await message.channel.trigger_typing()
|
||||||
|
|
||||||
response = str()
|
response = str()
|
||||||
caller = openai_caller(api_key=api_key)
|
caller = openai_caller()
|
||||||
called_functions = (
|
called_functions = (
|
||||||
functions
|
functions
|
||||||
if not isinstance(message.channel, discord.TextChannel)
|
if not isinstance(message.channel, discord.TextChannel)
|
||||||
|
|||||||
Reference in New Issue
Block a user