Add http proxy support for ai agent
sometimes due to network limitation we can not setup connection with AI server or client(twitter/discord) server directly, so request support proxy handling in .env
⛔ ERRORS Full error details: {"message":"request to https://api.openai.com/v1/embeddings failed, reason: ","type":"system","errno":"ETIMEDOUT","code":"ETIMEDOUT"}
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Hello @www222fff! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!
Node.js does respect HTTP proxy environment variables for fetch requests. Have you tried setting the environment variables?
@www222fff
HTTP_PROXY=http://your-proxy-host:port
HTTPS_PROXY=http://your-proxy-host:port
NO_PROXY=localhost,127.0.0.1,example.com
Closed