diff --git a/README.md b/README.md index 5ce001b0..e3407f17 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) diff --git a/scripts/main.py b/scripts/main.py index 11bf0dc1..e16fb9d1 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -281,10 +281,11 @@ 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 = get_memory(cfg, init=True) - print('Using memory of type: ' + memory.__class__.__name__) # Interaction Loop