mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-01 07:07:14 +00:00
fix(httpx): deprecated proxies param
This commit is contained in:
@@ -30,7 +30,7 @@ class AnthropicMessages(requester.LLMAPIRequester):
|
|||||||
timeout=typing.cast(httpx.Timeout, self.ap.provider_cfg.data['requester']['anthropic-messages']['timeout']),
|
timeout=typing.cast(httpx.Timeout, self.ap.provider_cfg.data['requester']['anthropic-messages']['timeout']),
|
||||||
limits=anthropic._constants.DEFAULT_CONNECTION_LIMITS,
|
limits=anthropic._constants.DEFAULT_CONNECTION_LIMITS,
|
||||||
follow_redirects=True,
|
follow_redirects=True,
|
||||||
proxies=self.ap.proxy_mgr.get_forward_proxies()
|
trust_env=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.client = anthropic.AsyncAnthropic(
|
self.client = anthropic.AsyncAnthropic(
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class OpenAIChatCompletions(requester.LLMAPIRequester):
|
|||||||
base_url=self.requester_cfg['base-url'],
|
base_url=self.requester_cfg['base-url'],
|
||||||
timeout=self.requester_cfg['timeout'],
|
timeout=self.requester_cfg['timeout'],
|
||||||
http_client=httpx.AsyncClient(
|
http_client=httpx.AsyncClient(
|
||||||
proxies=self.ap.proxy_mgr.get_forward_proxies()
|
trust_env=True,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user