LangChainのプロキシ設定
LLM application framework — its loaders fetch the open web. 下の設定で Eveses の住宅用プールに向けてください。地域指定はユーザー名の中にあるので、国を変えるのに他の設定を触る必要はありません。
proxy.eveses.com:12321 · SOCKS5 は 32325 · 199か国 · $7.35/GB から
LangChain's document loaders each hold their own HTTP client, so there is no single place to set a proxy. `WebBaseLoader` takes `requests_kwargs`; `AsyncHtmlLoader` does not, and needs the session passed in.
設定
from langchain_community.document_loaders import WebBaseLoader
proxy = "http://eveses_user_country-us:[email protected]:12321"
loader = WebBaseLoader(
"https://target-site.com",
requests_kwargs={"proxies": {"http": proxy, "https": proxy}, "timeout": 30},
)
docs = loader.load()LangChainに関する注意
Give each agent run its own `_session-…` token if you need the same exit IP for a multi-step task.
Tool calls that hit an API rather than a page usually do not need the proxy — route only the web loaders.
LangChainを触らずに国を変える
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30m地域とセッションはユーザー名の中にあり、ホストやポートにはありません。国を変えてもこのページの設定はそのままで、書き換えるのは1つの文字列だけです。199か国を指定でき、その多くでは都市・州のトークンも使えます。