From ead677d5588b250b358f7b74f4ff73d3d32c63a1 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 10 Jan 2023 04:51:14 +0000 Subject: [PATCH 01/10] Format Python code with psf/black push --- gpt3discord.py | 7 ++++++- models/autocomplete_model.py | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gpt3discord.py b/gpt3discord.py index d259378..2898084 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -40,7 +40,12 @@ if PINECONE_TOKEN: PINECONE_INDEX = "conversation-embeddings" if PINECONE_INDEX not in pinecone.list_indexes(): print("Creating pinecone index. Please wait...") - pinecone.create_index('conversation-embeddings', dimension=1536, metric='dotproduct', pod_type='s1') + pinecone.create_index( + "conversation-embeddings", + dimension=1536, + metric="dotproduct", + pod_type="s1", + ) pinecone_service = PineconeService(pinecone.Index(PINECONE_INDEX)) print("Got the pinecone service") diff --git a/models/autocomplete_model.py b/models/autocomplete_model.py index f007862..b78dbeb 100644 --- a/models/autocomplete_model.py +++ b/models/autocomplete_model.py @@ -41,7 +41,11 @@ class Settings_autocompleter: "summarize_threshold": [str(num) for num in range(800, 3500, 50)], } if ctx.options["parameter"] in values.keys(): - return [value for value in values[ctx.options["parameter"]] if value.startswith(ctx.value.lower())] + return [ + value + for value in values[ctx.options["parameter"]] + if value.startswith(ctx.value.lower()) + ] else: await ctx.interaction.response.defer() # defer so the autocomplete in int values doesn't error but rather just says not found return [] From 50a060dcbd3cc4a896fb7d80007b16dc977df6a2 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Tue, 10 Jan 2023 05:49:28 -0500 Subject: [PATCH 02/10] force a deploy, away from computer lol Signed-off-by: Kaveen Kumarasinghe --- sample.env | 1 + 1 file changed, 1 insertion(+) diff --git a/sample.env b/sample.env index ded562e..a90fdb6 100644 --- a/sample.env +++ b/sample.env @@ -14,3 +14,4 @@ DALLE_ROLES = "Admin,Openai,Dalle,gpt" GPT_ROLES = "openai,gpt" WELCOME_MESSAGE = "Hi There! Welcome to our Discord server. We hope you'll enjoy our server and we look forward to engaging with you!" # This is a fallback message if gpt3 fails to generate a welcome message. + From 8b72f843a4a0810c6e6f421581c66ef4fa38f62b Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:04:01 +0100 Subject: [PATCH 03/10] Create OPENAI-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/OPENAI-Guide.md | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 detailed_guides/OPENAI-Guide.md diff --git a/detailed_guides/OPENAI-Guide.md b/detailed_guides/OPENAI-Guide.md new file mode 100644 index 0000000..4f3aa89 --- /dev/null +++ b/detailed_guides/OPENAI-Guide.md @@ -0,0 +1,43 @@ +

How to get a API-Key from OpenAI

+
Date: January 8, 2023
+
Author: Rene Schelasin
+
Source: Tango
+
+ + +

1. Go to OpenAI at https://openai.com/api/

+
+ +

2. Click on "SIGN UP" at the top right corner.

+Click on "SIGN UP" at the top right corner. +
+ +

3. Register yourself a new Account following the shown instructions.

+
+ +

4. After the successful registration you see the OpenAI overview.

+After the successful registration you see the OpenAI overview. +
+ +

5. There you click in the top right corner at "Personal".

+There you click in the top right corner at "Personal". +
+ +

6. And then click at "View API keys" in the dropdown menu.

+And then click at "View API keys" in the dropdown menu. +
+ +

7. On the next page click at "Create new secret key".

+

If you failed to copy it or lost the copied key, redo that step and delete the old key by clicking on the little grey trash icon right next to the "LAST USED" information for your key.

+On the next page click at "Create new secret key". +
+ +

8. IMPORTANT STEP! Copy this key by clicking the green highlighted button.

+

We will need this key in the future for setting up the bot on our server.

+IMPORTANT STEP! Copy this key by clicking the green highlighted button. +
+ +
+
+This Workflow was created with Tango. +
From 0f4c97c48dff0609c143f3195daa51ef19bdf480 Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:04:37 +0100 Subject: [PATCH 04/10] Create DROPLET-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/DROPLET-Guide.md | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 detailed_guides/DROPLET-Guide.md diff --git a/detailed_guides/DROPLET-Guide.md b/detailed_guides/DROPLET-Guide.md new file mode 100644 index 0000000..190eff8 --- /dev/null +++ b/detailed_guides/DROPLET-Guide.md @@ -0,0 +1,70 @@ +

How to create your own Droplet with DigitalOcean to run GPT3Discord

+
Date: January 8, 2023
+
Author: Rene Schelasin
+
Source: Tango
+
+ + +

1. Go to DigitalOcean | The Cloud for Builders

+
+ +

2. Click on Sign up to register yourself.

+Click on Sign up to register yourself. +
+ +

3. If you already have an account click on Sign in.

+If you already have an account click on Sign in. +
+ +

4. Click password field

+Click password field +
+ +

5. Enter your password and click on Log In.

+Enter your password and click on Log In. +
+ +

6. After these steps click on "Explore our control panel".

+After these steps click on "Explore our control panel". +
+ +

7. Then Click on "Get started with a Droplet".

+Then Click on "Get started with a Droplet". +
+ +

8. Here it is very important to choose the right distribution via the drop down menu.

+

The distribution which works best with the bot is Ubuntu 20.04 (LTS) x64.

+Here it is very important to choose the right distribution via the drop down menu. +
+ +

9. For the next step You've to choose a plan and the CPU option.

+

Do at least as shown in the picture below.

+For the next step You've to choose a plan and the CPU option. +
+ +

10. You really don't need to add more block storage, as there is enough on default for the bot.

+

Just choose the region closest to yours right below the "Add block storage"

+You really don't need to add more block storage, as there is enough on default for the bot. +
+ +

11. Choose the Password option and set up your password.

+Choose the Password option and set up your password. +
+ +

12. I highly recommend you turn on the backup feature.

+

Backups increase the monthly amount to pay. The rest is up to you as it is free.

+I highly recommend you turn on the backup feature. +
+ +

13. Give your Droplet a name or left it untouched if you don't want to rename it.

+

Choose some tags or left it untouched. It's for you to decide.

+Give your Droplet a name or left it untouched if you don't want to rename it. +
+ +

14. Congratulations! You have successfully created your own Droplet.

+
+ +
+
+This Workflow was created with Tango. +
From 5582b8e97f42a2a33f10b255037a21ebe45683be Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 19:09:12 +0100 Subject: [PATCH 05/10] Update README.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e62c1e2..6dd425a 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,15 @@ Moreover, an important thing to keep in mind is: pinecone indexes are currently Permanent memory using pinecone is still in alpha, I will be working on cleaning up this work, adding auto-clearing, and optimizing for stability and reliability, any help and feedback is appreciated (**add me on Discord Kaveen#0001 for pinecone help**)! If at any time you're having too many issues with pinecone, simply remove the `PINECONE_TOKEN` line in your `.env` file and the bot will revert to using conversation summarizations. +# Step-by-Step Guides for GPT3Discord + +[**GPT3Discord Guides**](https://github.com/Kav-K/GPT3Discord/tree/main/detailed_guides) + +If you follow the link above, you will now get to detailed step-by-step guides that will help you to install and set up your GPT3Discord bot quickly and easily. If you still run into problems or have suggestions for improving the guides, you can join the [**Discord-Server**](https://discord.gg/openai) and **@FluffyFox** will help you in our [**Discord-Thread**](https://discord.com/channels/974519864045756446/1050326404841082930). + +*The number and content of the guides is constantly adapted to current requirements.* + + # Configuration All the model parameters are configurable inside discord. Type `/system settings` to view all the configurable parameters, and use `/system settings ` to set parameters. From 3adc20ca225d28fed523d21bc38f7ff8db1a237d Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:25:01 +0100 Subject: [PATCH 06/10] Update OPENAI-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/OPENAI-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detailed_guides/OPENAI-Guide.md b/detailed_guides/OPENAI-Guide.md index 4f3aa89..944cee1 100644 --- a/detailed_guides/OPENAI-Guide.md +++ b/detailed_guides/OPENAI-Guide.md @@ -1,6 +1,6 @@

How to get a API-Key from OpenAI

Date: January 8, 2023
-
Author: Rene Schelasin
+
Author: CrypticHeaven-Lab
Source: Tango

From 0d43e8b67336f0a136fae4ed1e16e6c63d95504f Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:25:15 +0100 Subject: [PATCH 07/10] Update DROPLET-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/DROPLET-Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detailed_guides/DROPLET-Guide.md b/detailed_guides/DROPLET-Guide.md index 190eff8..3f9e81b 100644 --- a/detailed_guides/DROPLET-Guide.md +++ b/detailed_guides/DROPLET-Guide.md @@ -1,6 +1,6 @@

How to create your own Droplet with DigitalOcean to run GPT3Discord

Date: January 8, 2023
-
Author: Rene Schelasin
+
Author: CrypticHeaven-Lab
Source: Tango

From 2726cc6cbdd163925deaf8c42e6b24568c03b051 Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:27:33 +0100 Subject: [PATCH 08/10] Update DROPLET-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/DROPLET-Guide.md | 1 - 1 file changed, 1 deletion(-) diff --git a/detailed_guides/DROPLET-Guide.md b/detailed_guides/DROPLET-Guide.md index 3f9e81b..1313dae 100644 --- a/detailed_guides/DROPLET-Guide.md +++ b/detailed_guides/DROPLET-Guide.md @@ -1,7 +1,6 @@

How to create your own Droplet with DigitalOcean to run GPT3Discord

Date: January 8, 2023
Author: CrypticHeaven-Lab
-
Source: Tango

From 1918719713865cf2f6fb54beb671cd2d4b14c429 Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:28:00 +0100 Subject: [PATCH 09/10] Update DROPLET-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/DROPLET-Guide.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/detailed_guides/DROPLET-Guide.md b/detailed_guides/DROPLET-Guide.md index 1313dae..ff5f466 100644 --- a/detailed_guides/DROPLET-Guide.md +++ b/detailed_guides/DROPLET-Guide.md @@ -65,5 +65,3 @@
-This Workflow was created with Tango. -
From 342b0e14d359ddda2cf047e355d8a6b35adb9a22 Mon Sep 17 00:00:00 2001 From: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:28:54 +0100 Subject: [PATCH 10/10] Update OPENAI-Guide.md Signed-off-by: CrypticHeaven-Lab <69017439+CrypticHeaven-Lab@users.noreply.github.com> --- detailed_guides/OPENAI-Guide.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/detailed_guides/OPENAI-Guide.md b/detailed_guides/OPENAI-Guide.md index 944cee1..2fe7e33 100644 --- a/detailed_guides/OPENAI-Guide.md +++ b/detailed_guides/OPENAI-Guide.md @@ -1,7 +1,6 @@

How to get a API-Key from OpenAI

Date: January 8, 2023
Author: CrypticHeaven-Lab
-
Source: Tango

@@ -39,5 +38,3 @@
-This Workflow was created with Tango. -