Recipe: rate-limit handling
Recipe — rate-limit handling. Pointer to the SDK security guide.
Last updated
Was this helpful?
Recipe — rate-limit handling. Pointer to the SDK security guide.
Canonical guide: stratix-python/docs/security/rate-limiting.md.
The SDK auto-retries 429 with Retry-After honored. To handle directly:
import layerlens
try:
client.evaluations.create(model=model, benchmark=benchmark)
except layerlens.RateLimitError as e:
retry_after = e.response.headers.get('retry-after')
print(f"Rate limited. Retry after: {retry_after}s")Last updated
Was this helpful?
Was this helpful?