| from __future__ import annotations | |
| import httpx | |
| from .config import settings | |
| def client() -> httpx.AsyncClient: | |
| return httpx.AsyncClient( | |
| timeout=httpx.Timeout(settings.http_timeout_s), | |
| headers={"user-agent": "ToxRAI/0.2 (HF Space demo)"}, | |
| follow_redirects=True, | |
| ) |