MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / _build_timeout

Function _build_timeout

app/utils/guest_session_pool.py:45–52  ·  view source on GitHub ↗

构建访客会话相关请求超时。

(read_timeout: float = 30.0)

Source from the content-addressed store, hash-verified

43
44
45def _build_timeout(read_timeout: float = 30.0) -> httpx.Timeout:
46 """构建访客会话相关请求超时。"""
47 return httpx.Timeout(
48 connect=5.0,
49 read=read_timeout,
50 write=10.0,
51 pool=5.0,
52 )
53
54
55def _build_limits() -> httpx.Limits:

Callers 1

_build_async_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected