feat: update quota script to use direct API call
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
---
|
||||
description: Synthetic API quota status - tokens remaining, usage stats, synu output
|
||||
description: Synthetic API quota status - tokens remaining, usage stats, API response
|
||||
limit: 10000
|
||||
---
|
||||
|
||||
# Synthetic API Quota
|
||||
|
||||
**Last Updated:** 2026-03-21T20:21:15-04:00
|
||||
**Last Updated:** 2026-03-21T20:23:53-04:00
|
||||
|
||||
## Current Status
|
||||
|
||||
**Status:** ⚠️ synu command unavailable or no quota data
|
||||
**Status:** ⚠️ API call failed or no quota data
|
||||
|
||||
**Note:** Run `synu` manually to see quota bars
|
||||
|
||||
## Models Available
|
||||
|
||||
Run `synu models` to see available models.
|
||||
**Issue:** API key not found in environment
|
||||
|
||||
## Usage Guidelines
|
||||
|
||||
@@ -28,7 +24,7 @@ Run `synu models` to see available models.
|
||||
### Pre-Flight Check
|
||||
|
||||
**Before starting longform tasks:**
|
||||
- Check `synu` output for current quota
|
||||
- Check quota via `synu` or API response above
|
||||
- Ensure 🟢 green status before multi-agent operations
|
||||
- For 🔴 red status — notify Casey, use budget models only, or defer
|
||||
|
||||
@@ -42,15 +38,16 @@ Run `synu models` to see available models.
|
||||
## Quick Check
|
||||
|
||||
```bash
|
||||
# Check quota visually
|
||||
synu
|
||||
# Check quota via API directly
|
||||
curl https://api.synthetic.new/v2/quotas \
|
||||
-H "Authorization: Bearer ${SYNTHETIC_API_KEY}"
|
||||
|
||||
# List available models
|
||||
synu models
|
||||
# Or use synu for visual bars
|
||||
synu
|
||||
```
|
||||
|
||||
## History
|
||||
|
||||
| Timestamp | Status | Notes |
|
||||
|-------------|--------|-------|
|
||||
| 2026-03-21 20:21 | unknown | Auto-check |
|
||||
| 2026-03-21 20:23 | unknown | Auto-check |
|
||||
|
||||
Reference in New Issue
Block a user