perf: 去除冗余代码

This commit is contained in:
archer
2023-04-26 21:59:22 +08:00
parent 0540c2e46a
commit 46eb96c72e
34 changed files with 36 additions and 851 deletions

View File

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