Error message: fetch failed/about proxy and reverse proxy #292
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi, thanks for trying the project! Sorry you're having issues with this. This is one thing I noticed in your .env file:
It looks like your proxy is commented out, you should remove the Let me know if this was the issue. You can also ask on discord as the community is active on there! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply, but this is not the main reason, I wander how the bottom of this project makes a request to the api of openai, if it requests directly to this |
Beta Was this translation helpful? Give feedback.
-
For the openAI API it would be OPENAI_REVERSE_PROXY in your ./api/.env file Let us know if you need real time help, there's a couple of us on discord right now |
Beta Was this translation helpful? Give feedback.
-
I’m going to test with a reverse proxy today and see if there is an issue. I’ll share my configuration if it works |
Beta Was this translation helpful? Give feedback.
-
also how did you build the reverse proxy? |
Beta Was this translation helpful? Give feedback.
-
Just set reverse proxy in |
Beta Was this translation helpful? Give feedback.
Just set reverse proxy in
api/.env
:OPENAI_REVERSE_PROXY=YOUR_REVERSE_PROXY_URL(e.g.https://proxy.xxxx.com/v1/chat/completions)