Guard the install check against an empty catalogue

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-10 21:56:10 -07:00
co-authored by Hanzo Dev
parent 39bc72bc09
commit ca850e5cc9
+1 -1
View File
@@ -18,7 +18,7 @@ Check the install without a key — `GET /v1/models` is public:
```bash
python -c 'from hanzoai.cloud import AiApi, ApiClient, Configuration
print(len(AiApi(ApiClient(Configuration())).get_models().data), "models")'
print(len(AiApi(ApiClient(Configuration())).get_models().data or []), "models")'
```
```