Skip to content

Commit da1c126

Browse files
committed
Handle empty api key for weaviate
1 parent 312ebb2 commit da1c126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llmstack/data/destinations/vector_stores/legacy_weaviate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def initialize_client(self, *args, **kwargs) -> BasePydanticVectorStore:
377377
weaviate_client = weaviate.Client(
378378
url=self.url,
379379
additional_headers=self.additional_headers,
380-
auth_client_secret=weaviate.auth.AuthApiKey(api_key=self.api_key),
380+
auth_client_secret=weaviate.auth.AuthApiKey(api_key=self.api_key) if self.api_key else None,
381381
)
382382

383383
return PromptlyLegacyWeaviateVectorStore(

0 commit comments

Comments
 (0)