TOXRA.AI / core /http.py
hchevva's picture
Create http.py
2279af9 verified
raw
history blame contribute delete
297 Bytes
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,
)