10 lines
242 B
JavaScript
10 lines
242 B
JavaScript
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
|
|
export function getOpenAICommonOptions() {
|
|
const options = {};
|
|
if (process.env.PROXY_URL) {
|
|
options.httpAgent = new HttpsProxyAgent(process.env.PROXY_URL);
|
|
}
|
|
return options;
|
|
}
|