diff --git a/detailed_guides/OPENAI-Guide.md b/detailed_guides/OPENAI-Guide.md
new file mode 100644
index 0000000..2fe7e33
--- /dev/null
+++ b/detailed_guides/OPENAI-Guide.md
@@ -0,0 +1,40 @@
+
+
Date: January 8, 2023
+
Author: CrypticHeaven-Lab
+
+
+
+
+
+
2. 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.
+
+
+
+
5. There you click in the top right corner at "Personal".
+
+
+
+
6. 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.
+
+
+
+
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.
+
+
+
+
+
diff --git a/gpt3discord.py b/gpt3discord.py
index 752268a..03fd33c 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 []
diff --git a/sample.env b/sample.env
index d81af32..10fb949 100644
--- a/sample.env
+++ b/sample.env
@@ -15,4 +15,4 @@ 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.
-USER_INPUT_API_KEYS="False" # If True, users must use their own API keys for OpenAI. If False, the bot will use the API key in the .env file.
\ No newline at end of file
+USER_INPUT_API_KEYS="False" # If True, users must use their own API keys for OpenAI. If False, the bot will use the API key in the .env file.