feat: 中转安全凭证;perf: 部署文件

This commit is contained in:
archer
2023-04-26 16:41:58 +08:00
parent c6a5f16336
commit 4b1cc6878c
7 changed files with 174 additions and 18 deletions

View File

@@ -86,7 +86,12 @@ export const authOpenApiKey = async (req: NextApiRequest) => {
/* openai axios config */
export const axiosConfig = {
httpsAgent: global.httpsAgent
httpsAgent: global.httpsAgent,
headers: process.env.OPENAI_BASE_URL_AUTH
? {
auth: process.env.OPENAI_BASE_URL_AUTH
}
: {}
};
/* delete invalid symbol */