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

Function _get_proxy_config

app/utils/guest_session_pool.py:34–42  ·  view source on GitHub ↗

获取代理配置。

()

Source from the content-addressed store, hash-verified

32
33
34def _get_proxy_config() -> Optional[str]:
35 """获取代理配置。"""
36 if settings.HTTPS_PROXY:
37 return settings.HTTPS_PROXY
38 if settings.HTTP_PROXY:
39 return settings.HTTP_PROXY
40 if settings.SOCKS5_PROXY:
41 return settings.SOCKS5_PROXY
42 return None
43
44
45def _build_timeout(read_timeout: float = 30.0) -> httpx.Timeout:

Callers 1

_build_async_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected