LibreChat
LibreChat copied to clipboard
[Enhancement] Global proxy support as Google doesn't support explicit proxy
What happened?
Google GL requests are made without using proxy from .env file
Steps to Reproduce
- Use google GL api inside Russia with proxy set in .env
- 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
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
Up
After testing, I found Anthropic's API also does not use proxy in .env