Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
Browse files Browse the repository at this point in the history
  • Loading branch information
Kav-K committed Jan 25, 2023
2 parents 33deed8 + a3763e6 commit 61e6785
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gpt3discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
pod_type="s1",
)
PINECONE_INDEX_SEARCH = "search-embeddings"
if EnvService.get_google_search_api_key() and EnvService.get_google_search_engine_id():
if (
EnvService.get_google_search_api_key()
and EnvService.get_google_search_engine_id()
):
if PINECONE_INDEX_SEARCH not in pinecone.list_indexes():
print("Creating pinecone index for seraches. Please wait...")
pinecone.create_index(
Expand Down

0 comments on commit 61e6785

Please sign in to comment.