Added new logging function as an error or warning message

This commit is contained in:
Eesa Hamza
2023-04-12 23:38:53 +03:00
parent 5d871f04e6
commit 8c51fe8373
3 changed files with 9 additions and 8 deletions

View File

@@ -23,10 +23,8 @@ class PineconeMemory(MemoryProviderSingleton):
pinecone.whoami()
except Exception as e:
logger.typewriter_log("FAILED TO CONNECT TO PINECONE", Fore.RED, Style.BRIGHT + str(e) + Style.RESET_ALL)
logger.typewriter_log("DOUBLE CHECK CONFIGURATION",
Fore.YELLOW,
"Please ensure you have setup and configured Pinecone properly for use. " +
f"You can check out {Fore.CYAN + Style.BRIGHT}https://github.com/Torantulino/Auto-GPT#-pinecone-api-key-setup{Style.RESET_ALL} to ensure you've set up everything correctly.")
logger.double_check("Please ensure you have setup and configured Pinecone properly for use. " +
f"You can check out {Fore.CYAN + Style.BRIGHT}https://github.com/Torantulino/Auto-GPT#-pinecone-api-key-setup{Style.RESET_ALL} to ensure you've set up everything correctly.")
exit(1)
if table_name not in pinecone.list_indexes():