mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-26 20:34:10 +01:00
fix: use of proxy, use undici
This commit is contained in:
parent
a326c18b74
commit
83153cd582
5 changed files with 20 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const { ProxyAgent } = require('undici');
|
||||
const Anthropic = require('@anthropic-ai/sdk');
|
||||
const { HttpsProxyAgent } = require('https-proxy-agent');
|
||||
const {
|
||||
Constants,
|
||||
ErrorTypes,
|
||||
|
|
@ -193,7 +193,7 @@ class AnthropicClient extends BaseClient {
|
|||
};
|
||||
|
||||
if (this.options.proxy) {
|
||||
options.httpAgent = new HttpsProxyAgent(this.options.proxy);
|
||||
options.httpAgent = new ProxyAgent(this.options.proxy);
|
||||
}
|
||||
|
||||
if (this.options.reverseProxyUrl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue