Skip to content
Snippets Groups Projects
Commit cea73d8e authored by James Briggs's avatar James Briggs
Browse files

fix: host get logic

parent 5e9632f9
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,7 @@ class PineconeIndex(BaseIndex): ...@@ -235,7 +235,7 @@ class PineconeIndex(BaseIndex):
f"{force_create=}" f"{force_create=}"
) )
index = None index = None
if self.index is not None and self.host == "": if self.host == "":
self.host = self.client.describe_index(self.index_name)["host"] self.host = self.client.describe_index(self.index_name)["host"]
return index return index
......
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