Skip to content

Commit

Permalink
Add comment explaining why we use utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Jun 24, 2024
1 parent 3186fae commit 7c58f8f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def client(self):
return self._client

if self._url and self._url.startswith("http") and self._url.endswith(".weaviate.network"):
# We use this utility function instead of using WeaviateClient directly like in other cases
# otherwise we'd have to parse the URL to get some information about the connection.
# This utility function does all that for us.
self._client = weaviate.connect_to_wcs(
self._url,
auth_credentials=self._auth_client_secret.resolve_value() if self._auth_client_secret else None,
Expand Down

0 comments on commit 7c58f8f

Please sign in to comment.