WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.52k stars 998 forks source link

The Open AI does not implement proxy parameters! #11868

Closed Akemi-Madoka closed 3 months ago

Akemi-Madoka commented 3 months ago

Describe the problem

In the py module of OpenAI, the client implementation does not call the HTTP_PROXY and HTTPS_PROXY environment parameters, resulting in the inability to connect to the OpenAI client from my region, and eventually leading to a Connection error.

Describe the solution you would like

I hope that when calling the related API, the proxy server can be called through the environment parameters, or a new corresponding proxy server environment parameter can be added for input.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

nijel commented 3 months ago

I think it is supposed to work because openai uses httpx underneath and that supports it: https://www.python-httpx.org/environment_variables/#proxies

Akemi-Madoka commented 3 months ago

Hello! I apologize for wasting your time. This issue actually stems from a very foolish and basic mistake on my part. I wrote down this question while rigorously testing that the PROXY was actually running properly, and after you responded to me, I realized that in my docker-compose.override.yml, I had written HTTP_PROXY as HTTP_PORXY... I am very sorry!

github-actions[bot] commented 3 months ago

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.