openai-edge icon indicating copy to clipboard operation
openai-edge copied to clipboard

does openai-edge support agents

Open qingdog opened this issue 1 year ago • 0 comments

similar to openai settings

import http from 'http';
import HttpsProxyAgent from 'https-proxy-agent';

// Configure the default for all requests:
const openai = new OpenAI({
  httpAgent: new HttpsProxyAgent(process.env.PROXY_URL),
});

// Override per-request:
await openai.models.list({
  baseURL: 'http://localhost:8080/test-api',
  httpAgent: new http.Agent({ keepAlive: false }),
})

qingdog avatar Sep 15 '23 15:09 qingdog