Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] AI functionalities with the OpenAI API (ChatGPT) #79

Open
cop6567 opened this issue May 7, 2023 · 4 comments
Open

[FEATURE] AI functionalities with the OpenAI API (ChatGPT) #79

cop6567 opened this issue May 7, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@cop6567
Copy link

cop6567 commented May 7, 2023

I would like to work on the AI functionalities

I have a lot of experience with APIs, hence AI. I'd like to work on the feature as my first contribution.

Here's what the features the bot should have related to AI

  • Customizable AI prompts (making your own behaviors for the bot via commands)
  • Remembering past prompts via SQL or other technologies.
  • Option to customize length of answers and how diverse responses will be.

In summary, the goal is to create a fully customizable AI system in the bot.

@cop6567 cop6567 added the enhancement New feature or request label May 7, 2023
@cop6567 cop6567 changed the title [FEATURE] AI functionalities with the OpenAI API (ChatGPT) [FEATURE] AI functionalities with the OpenAI API (ChatGPT) #good-first-issue May 7, 2023
@cop6567 cop6567 changed the title [FEATURE] AI functionalities with the OpenAI API (ChatGPT) #good-first-issue [FEATURE] AI functionalities with the OpenAI API (ChatGPT) May 7, 2023
@ColaIan
Copy link
Member

ColaIan commented May 7, 2023

Hi there, unfortunate to say but our bot probably wouldn't even work on its own right now (see #68) as we haven't maintained it for quite a while. If you would like to contribute, consider fixing our bot first 🤣. Anyway back to your issue, AI is a nice idea but we're not sure about the ease of abuse if we were to host a public bot with an API key attached, maybe you will also have to consider about rate limit settings per user/per guild (either a rate limit bucket or rate limit per x amount of time would work), so people who host the bot doesn't go bankrupt in 5 minutes :)

@cop6567
Copy link
Author

cop6567 commented May 7, 2023

@ColaIan I agree, The custom prompt feature will allow you to limit bot abuse. As far as rate limiting goes. I might have some solutions. We limit the number of tokens the bot can send or make it asynchronous. I recommend we use both of these practices. Apart from that I recommend there be a different channel specific to talking to the AI. A slowmode of 5 seconds would make a difference.

As for the problem mentioned in #68, I might be able to help maintain it since I have been developing a few discord bots of my own with discord.py quite recently.

Anyways, thanks for the reply and I'll see what I can do.

@ColaIan
Copy link
Member

ColaIan commented May 8, 2023

Whether splitting the channel and enabling slow mode or not doesn't matter, it'll be the guild owner's option, as long as there is a working rate limit on the bot side it'll be good

@cop6567
Copy link
Author

cop6567 commented May 8, 2023

Noted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants