Skip to content
Snippets Groups Projects
Unverified Commit 6425b0fd authored by Bogdan Buduroiu's avatar Bogdan Buduroiu
Browse files

feat: Passes base_url to Pinecone client

parent 133c627d
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,11 @@ class PineconeIndex(BaseIndex):
"You can install it with: "
"`pip install 'semantic-router[pinecone]'`"
)
pinecone_args = {"api_key": api_key, "source_tag": "semanticrouter"}
pinecone_args = {
"api_key": api_key,
"source_tag": "semanticrouter",
"host": self.base_url,
}
if self.namespace:
pinecone_args["namespace"] = self.namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment