fix some bugs

This commit is contained in:
jinhui.li
2025-03-03 15:51:12 +08:00
parent 48b908d36c
commit ba2da2f4ed

9
utils.mjs Normal file
View File

@@ -0,0 +1,9 @@
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;
}