MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / with_timeout

Method with_timeout

trainer/src/api_client/client.py:198–204  ·  view source on GitHub ↗

Get a new client matching this one with a new timeout (in seconds)

(self, timeout: httpx.Timeout)

Source from the content-addressed store, hash-verified

196 return evolve(self, cookies={**self._cookies, **cookies})
197
198 def with_timeout(self, timeout: httpx.Timeout) -> "AuthenticatedClient":
199 """Get a new client matching this one with a new timeout (in seconds)"""
200 if self._client is not None:
201 self._client.timeout = timeout
202 if self._async_client is not None:
203 self._async_client.timeout = timeout
204 return evolve(self, timeout=timeout)
205
206 def set_httpx_client(self, client: httpx.Client) -> "AuthenticatedClient":
207 """Manually the underlying httpx.Client

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected