mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-24 21:41:04 +02:00
fix: fail fast when CloudClient gets an empty api_key
This commit is contained in:
parent
6a451ea98f
commit
f5552546c6
1 changed files with 5 additions and 0 deletions
|
|
@ -309,5 +309,10 @@ class CloudClient(PageIndexClient):
|
|||
"""Cloud mode — fully managed by PageIndex cloud service. No LLM key needed."""
|
||||
|
||||
def __init__(self, api_key: str):
|
||||
if not api_key:
|
||||
raise PageIndexAPIError(
|
||||
"CloudClient requires a PageIndex API key — get one at "
|
||||
"https://dash.pageindex.ai."
|
||||
)
|
||||
self._empty_api_key = False
|
||||
self._init_cloud(api_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue