eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Add http proxy support for ai agent

Open www222fff opened this issue 1 year ago • 3 comments

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

www222fff avatar Jan 02 '25 04:01 www222fff

Hello @www222fff! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

github-actions[bot] avatar Jan 02 '25 04:01 github-actions[bot]

Node.js does respect HTTP proxy environment variables for fetch requests. Have you tried setting the environment variables?

btwiuse avatar Jan 06 '25 19:01 btwiuse

@www222fff

HTTP_PROXY=http://your-proxy-host:port
HTTPS_PROXY=http://your-proxy-host:port
NO_PROXY=localhost,127.0.0.1,example.com

JoeyKhd avatar Jan 06 '25 20:01 JoeyKhd

Closed

www222fff avatar Feb 03 '25 21:02 www222fff