chore: clarify the cloud-only method error — state the cause and the fix

This commit is contained in:
Ray 2026-07-21 16:55:21 +08:00
parent 80bdfc152d
commit 6567e7a198

View file

@ -146,8 +146,8 @@ class PageIndexClient:
"(client.collection(...)) for local mode."
)
raise PageIndexAPIError(
"This method is part of the pageindex 0.2.x cloud SDK API. "
"Initialize with api_key to use it."
"This method calls the PageIndex cloud API — create the client "
"with an api_key (get one at https://dash.pageindex.ai)."
)
return self._legacy_cloud_api