secret_key
keyword argument,
we recommend using python-dotenv
to add RACCOON_SECRET_KEY="My Secret Key"
to your .env
file
so that your Secret Key is not stored in source control.
AsyncRaccoonAI
instead of RaccoonAI
and use await
with each API call:
max_retries
option to configure or disable retry settings:
timeout
option,
which accepts a float or an httpx.Timeout
object:
APITimeoutError
is thrown.
Note that requests that time out are retried twice by default.
.close()
method if desired, or with a context manager that closes when exiting.