From 06034d0b373a9aed5033c2e670950f765e285c2a Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 17 Feb 2025 21:24:31 -0600 Subject: Support OpenAI AND Groq --- code/cogs/autoplay.py | 4 +--- code/cogs/help.py | 3 ++- code/cogs/music.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'code/cogs') diff --git a/code/cogs/autoplay.py b/code/cogs/autoplay.py index 6c815b9..46672ee 100644 --- a/code/cogs/autoplay.py +++ b/code/cogs/autoplay.py @@ -75,9 +75,7 @@ class Autoplay(commands.Cog): ) await interaction.response.send_message(embed=embed) - if await add_song_recommendations( - self.bot.openai, self.bot.user, player, 5, inputs - ): + if await add_song_recommendations(self.bot.user, player, 5, inputs): self.bot.autoplay.append(interaction.guild.id) embed = create_embed( title=":infinity: Autoplay Enabled :infinity:", diff --git a/code/cogs/help.py b/code/cogs/help.py index 2475564..fe41d17 100644 --- a/code/cogs/help.py +++ b/code/cogs/help.py @@ -56,7 +56,8 @@ commands_and_descriptions = { }, "autoplay": { "description": ( - "Keep the music playing forever with music suggestions from OpenAI" + "Keep the music playing forever with automatic song" + " recommendations" ), "arguments": { "on": "Turn autoplay feature on", diff --git a/code/cogs/music.py b/code/cogs/music.py index 4814076..fca929c 100644 --- a/code/cogs/music.py +++ b/code/cogs/music.py @@ -245,7 +245,7 @@ class Music(commands.Cog): for song in event.player.queue[:10]: inputs[song.title] = song.author await add_song_recommendations( - self.bot.openai, self.bot.user, event.player, 5, inputs + self.bot.user, event.player, 5, inputs ) @lavalink.listener(lavalink.events.NodeConnectedEvent) -- cgit v1.2.3-70-g09d2