mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
Guard the install check against an empty catalogue
Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -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")'
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user