LibreChat icon indicating copy to clipboard operation
LibreChat copied to clipboard

[Enhancement] Global proxy support as Google doesn't support explicit proxy

Open Airkek opened this issue 6 months ago • 3 comments

What happened?

Google GL requests are made without using proxy from .env file

Steps to Reproduce

  1. Use google GL api inside Russia with proxy set in .env
  2. see logs

What browsers are you seeing the problem on?

No response

Relevant log output

User location is not supported for the API use.

Screenshots

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Airkek avatar Dec 16 '23 21:12 Airkek

Google's SDK doesn't support using an explicit proxy. The only alternative is using something like this: https://www.npmjs.com/package/node-global-proxy

If you're willing, a PR for this would be welcome, and would essentially cover proxying all requests

danny-avila avatar Dec 17 '23 01:12 danny-avila

Up

edge7 avatar Mar 31 '24 23:03 edge7

After testing, I found Anthropic's API also does not use proxy in .env

newptcai avatar Apr 16 '24 06:04 newptcai