From baf0a1b7f71acb7b61568b3167f700123d802d50 Mon Sep 17 00:00:00 2001 From: Annie Tunturi Date: Sat, 21 Mar 2026 20:24:07 -0400 Subject: [PATCH] feat: update quota script to use direct API call --- system/technical/synthetic_quota.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/system/technical/synthetic_quota.md b/system/technical/synthetic_quota.md index c7e77f3..10f27dc 100644 --- a/system/technical/synthetic_quota.md +++ b/system/technical/synthetic_quota.md @@ -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 |