Skip to content

Commit

Permalink
ChatGPT user install
Browse files Browse the repository at this point in the history
  • Loading branch information
stekc committed Oct 7, 2024
1 parent 4eb6af7 commit 430fc80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cogs/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ async def models_autocompletion(
description="Talk with ChatGPT.",
)
@app_commands.autocomplete(model=models_autocompletion)
@app_commands.allowed_installs(guilds=True, users=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def chatgpt(self, context: Context, message: str, model: str = "gpt-4o-mini"):
if model not in self.models:
return await context.send(
Expand Down

0 comments on commit 430fc80

Please sign in to comment.