From b983faa95339843f170258bd06923f6b81c1dc42 Mon Sep 17 00:00:00 2001 From: keenborder786 <21110290@lums.edu.pk> Date: Sat, 8 Apr 2023 04:36:10 +0500 Subject: [PATCH 1/2] [fix]: Added an exception in main.py if pinecone_api_key is not provided --- scripts/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index a79fd553ce..17385bf339 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -281,11 +281,12 @@ next_action_count = 0 # Make a constant: user_input = "Determine which next command to use, and respond using the format specified above:" +# raise an exception if pinecone_api_key or region is not provided +if not cfg.pinecone_api_key or not cfg.pinecone_region: raise Exception("Please provide pinecone_api_key and pinecone_region") # Initialize memory and make sure it is empty. # this is particularly important for indexing and referencing pinecone memory memory = PineconeMemory() memory.clear() - print('Using memory of type: ' + memory.__class__.__name__) # Interaction Loop From 1d0848c1a89e6c29e5fde1688bcdfa267de07974 Mon Sep 17 00:00:00 2001 From: keenborder786 <21110290@lums.edu.pk> Date: Sat, 8 Apr 2023 04:37:46 +0500 Subject: [PATCH 2/2] [docs]: Updated ReadMe to update the requirements sections --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a89c5d03b7..4fc0c349e5 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Your support is greatly appreciated ## 📋 Requirements - [Python 3.7 or later](https://www.tutorialspoint.com/how-to-install-python-in-windows) - OpenAI API key +- PINECONE API key Optional: - ElevenLabs Key (If you want the AI to speak)