Skip to content

Commit

Permalink
fix(httpx): deprecated proxies param
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jan 23, 2025
1 parent 8b51a81 commit d588faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/provider/modelmgr/requesters/anthropicmsgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def initialize(self):
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(
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/modelmgr/requesters/chatcmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def initialize(self):
base_url=self.requester_cfg['base-url'],
timeout=self.requester_cfg['timeout'],
http_client=httpx.AsyncClient(
proxies=self.ap.proxy_mgr.get_forward_proxies()
trust_env=True,
)
)

Expand Down

0 comments on commit d588faf

Please sign in to comment.