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

Method with_timeout

trainer/src/api_client/client.py:64–70  ·  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

62 return evolve(self, cookies={**self._cookies, **cookies})
63
64 def with_timeout(self, timeout: httpx.Timeout) -> "Client":
65 """Get a new client matching this one with a new timeout (in seconds)"""
66 if self._client is not None:
67 self._client.timeout = timeout
68 if self._async_client is not None:
69 self._async_client.timeout = timeout
70 return evolve(self, timeout=timeout)
71
72 def set_httpx_client(self, client: httpx.Client) -> "Client":
73 """Manually the underlying httpx.Client

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected