Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to handle transient failures.
429
500
502
503
import time import random def retry_with_backoff(func, max_retries=3): for attempt in range(max_retries): try: return func() except RateLimitError as e: if attempt == max_retries - 1: raise delay = (2 ** attempt) + random.uniform(0, 1) time.sleep(delay)
client = Akhara( max_retries=3, retry_delay=1.0 )