For the complete documentation index, see llms.txt. This page is also available as Markdown.

Recipe: rate-limit handling

Recipe — rate-limit handling. Pointer to the SDK security guide.

Canonical guide: stratix-python/docs/security/rate-limiting.md.

Quick reference

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")

See also

Last updated

Was this helpful?