Package: gpt3discord
GPT DiscordAn all-in-one GPT-3 interface for Discord. ChatGPT-style conversations, image generation, AI-moderation, custom indexes/knowledgebase, youtube summarizer, and more!OverviewAn all-in-one, robust OpenAI Integration for Discord. This bot is on feature parity with ChatGPT web and even does some things slightly better!We support everything frommulti-modality image understanding,code interpretation, advanced data analysis, Q&A onyour own documents,internet-connected chatwith Wolfram Alpha and Google access,AI-moderation,image generationwith DALL-E, and much more!BOT SETUP SUPPORT AND DEMO SERVER:Join HereFeaturing code execution and environment manipulation byE2BWe are migrating towards usingQDRANTas our vector database backing, we are moving away from pinecone. Qdrant is an excellent vector database choice, and in fact the best one that we've tested and used so far.Overview of CapabilitiesTable of ContentsScreenshotsFeaturesCommandsInstallation--DigitalOcean Droplet Guide--OpenAI Token GuideInternet Connected ChatCode Interpreter / Advanced Data AnalysisPermanent MemoryMulti-ModalityAI-SearchCustom IndexesAI-ModerationTranslationsUser-Input API KeysPermissionsLanguage DetectionOther Minor FeaturesScreenshotsMulti-ModalityInternet-connected chat (Google + Wolfram + Link Crawling)Code Interpreter / Advanced Data AnalysisCustom indexing and Document Q&ARecent Notable UpdatesMulti-modality + Drawing- GPTDiscord now supports images sent to the bot during a conversation made with/gpt converse, and the bot can draw images for you and work with you on them!GPT-4-Vision support, GPT-4-Turbo, DALLE-3 Support- Assistant support also coming soon!Code Interpreter / Advanced Data Analysis- Just like ChatGPT, GPTDiscord now has a fully-fledged code execution environment. You can work with GPT to execute your code in an isolated environment, with the ability to even install Python and system packages, and access the internet from the execution environment.Drag And Drop Document Chat- Chat with your documents by simply dragging and dropping files, or even links into discord chat!/index chatInternet-connected Chat!- Chat with an instance of GPT3.5 or GPT-4 that's connected to Google and Wolfram Alpha and can browse and access links that you send it!FeaturesMulti-modalwith image understanding, you can generate images with DALL-E within multi-modal conversations!Code Interpreter / Advanced Data AnalysisLong-term,permanent conversationswith GPT modelsUse your own files, PDFs, text files, websites, Discord channel content as context when asking GPT questions!Internet-connectedchatting with GPT, connected to Google, Wolfram Alpha, and a web crawlerGenerateDALL-E AI imagesand even optimize them right in DiscordTranslatetext with DeepL.Moderate your server automatically with AI!Auto-retry on API errors- Automatically resend failed requests silently to ensure a seamless experienceSet context-based pre-instructions per user and per channelAbility to redo, edit your conversation messages while chatting with GPTShareGPT integration to share your conversationsTag your bot in chat, and it'll respond!Async and fault-tolerant,can handle hundreds of users at once, if the upstream API permits!Change and view model parameters such as temperature, top_p, and more directly within Discord.Tracks token usage automaticallyAutomatic pagination and Discord support. The bot will automatically send very long messages as multiple messages and is able to send Discord code blocks and emoji, gifs, etc.A low usage mode, use a command to automatically switch to a cheaper and faster model to conserve your tokens during times of peak usage.Prints debug to a channel of your choice, so you can view the raw response JSONAbility to specify a limit to how long a conversation can be with the bot, to conserve your tokens.CommandsThese commands are grouped, so each group has a prefix, but you can easily tab complete the command without the prefix. For example, for/gpt ask, if you type/askand press tab, it'll show up too./help- Display help text for the bot(Chat)GPT Commands/gpt ask <prompt> <temp> <top_p> <frequency penalty> <presence penalty>Ask the GPT Davinci 003 model a question. Optional overrides available./gpt edit <instruction> <input> <temp> <top_p>Use the bot to edit text using the given instructions for how to do it, currently an alpha OpenAI feature so results might vary. Editing is currently free./gpt converse <opener> <opener_file> <private> <minimal>- Start a conversation with the bot, like ChatGPT. Also use the optionuse_threads:Falseto start a conversation in a full Discord channel!/gpt end- End a conversation with the bot./gpt instruction mode:<set/get/clear> type:<user/channel> <instruction> <instruction_file>- The commands let you set a system instruction for 3.5-turbo and gpt4 or just prepending text for Davinci and older models.Code Interpreter // Advanced Data Analysis Commands/code chat- Start a code interpreter chat with GPT. You can typeendto end the conversation.Search & Internet Commands/internet search:<prompt> scope:<number of sites to visit> nodes:<how deep GPT should think>- Search the internet with GPT assistance!/internet chat search_scope:<number> model:<turbo or gpt4>- Start an internet-connected chat with GPT, connected to Google and Wolfram.Custom Indexes Commands/index add file:<file> or link:<link>- Use a document or use a link to create/add to your indexes./index query query:<prompt> nodes:<number> response_mode:<mode>- Query your current index for a given prompt. GPT will answer based on your current document/index./index load user_index:<index> or server_index:<index>- Load a previously created index you own yourself or an index for the whole server./index compose- Combine multiple saved indexes into one or upgrade existing indexes into Deep Compositions./index reset- Reset and delete all of your saved indexes./index add_discord channel:<discord channel>- Create an add an index based on a Discord channel./index discord_backup- Use the last 3000 messages of every channel on your Discord server as an index. Needs both an admin and an index role./index chat user_index:<user_index> search_index:<search_index>- Chat with your documents that you've indexed previously!DALL-E2 Commands/dalle draw <prompt>- Have DALL-E generate images based on a prompt./dalle optimize <image prompt text>- Optimize a given prompt text for DALL-E image generation.System and Settings/system settings- Display settings for the model (temperature, top_p, etc)./system settings <setting> <value>- Change a model setting to a new value. Has autocomplete support, certain settings will have autocompleted values too./system usage- Estimate current usage details (based on Davinci)./system settings low_usage_mode True/False- Turn low usage mode on and off. If on, it will use the curie-001 model, and if off, it will use the Davinci-003 model./system delete-conversation-threads- Delete all threads related to this bot across all servers./system local-size- Get the size of the local dalleimages folder./system clear-local- Clear all the local dalleimages.Step-by-Step Guides for GPTDiscordGPTDiscord GuidesIf you follow the link above, you will find detailed step-by-step guides that will help you install and set up your GPTDiscord bot and its features quickly and easily. If you encounter any issues or have suggestions for improving the guides, you can join theDiscord Server, and we will try to help you. Please keep in mind that the maintainers are volunteers and will try to assist you on their schedule.The number and content of the guides are constantly adapted to current requirements.Our Amazing Contributors ⭐Improve this markdown, correct any spelling errors, and let me know what you change.