File size: 297 Bytes
2279af9
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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,
    )