Create httpx timeout settings tuned for upstream chat traffic.
(self, read_timeout: float = 30.0)
| 1022 | return None |
| 1023 | |
| 1024 | def _build_timeout(self, read_timeout: float = 30.0) -> httpx.Timeout: |
| 1025 | """Create httpx timeout settings tuned for upstream chat traffic.""" |
| 1026 | return httpx.Timeout( |
| 1027 | connect=5.0, |
| 1028 | read=read_timeout, |
| 1029 | write=10.0, |
| 1030 | pool=5.0, |
| 1031 | ) |
| 1032 | |
| 1033 | def _build_limits(self) -> httpx.Limits: |
| 1034 | """Create conservative connection-pool limits for upstream requests.""" |
no outgoing calls
no test coverage detected