fix(httpx): deprecated proxies param

This commit is contained in:
Junyan Qin
2025-01-23 13:32:27 +08:00
parent 8b51a81158
commit d588faf470
2 changed files with 2 additions and 2 deletions
@@ -30,7 +30,7 @@ class AnthropicMessages(requester.LLMAPIRequester):
timeout=typing.cast(httpx.Timeout, self.ap.provider_cfg.data['requester']['anthropic-messages']['timeout']),
limits=anthropic._constants.DEFAULT_CONNECTION_LIMITS,
follow_redirects=True,
proxies=self.ap.proxy_mgr.get_forward_proxies()
trust_env=True,
)
self.client = anthropic.AsyncAnthropic(