diff --git a/semantic_router/index/pinecone.py b/semantic_router/index/pinecone.py index c685f7f908ff12b800a0735c716d9f4309999f51..de2885243b8e8b17a7eeeee1f23e84a34e9cb964 100644 --- a/semantic_router/index/pinecone.py +++ b/semantic_router/index/pinecone.py @@ -71,7 +71,7 @@ class PineconeIndex(BaseIndex): self.namespace = namespace self.type = "pinecone" self.api_key = api_key or os.getenv("PINECONE_API_KEY") - + if self.api_key is None: raise ValueError("Pinecone API key is required.")