Files
claude-code-router/utils.mjs
2025-03-03 15:51:12 +08:00

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;
}