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

Method _build_limits

app/core/upstream.py:1033–1038  ·  view source on GitHub ↗

Create conservative connection-pool limits for upstream requests.

(self)

Source from the content-addressed store, hash-verified

1031 )
1032
1033 def _build_limits(self) -> httpx.Limits:
1034 """Create conservative connection-pool limits for upstream requests."""
1035 return httpx.Limits(
1036 max_keepalive_connections=5,
1037 max_connections=10,
1038 )
1039
1040 async def _fetch_direct_guest_auth(self) -> Dict[str, Any]:
1041 """匿名号池缺席时,兜底直连拉取一个访客令牌。"""

Callers 5

_create_upstream_chatMethod · 0.95
upload_imageMethod · 0.95
chat_completionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected