feat: support config host name and proxy address

This commit is contained in:
Wentao Lyu 2023-03-11 14:12:51 +08:00
parent fb9f77ae5e
commit 06c99154ac
4 changed files with 32 additions and 28 deletions

View file

@ -7,6 +7,7 @@ const clientOptions = {
// Access token from https://chat.openai.com/api/auth/session
accessToken: process.env.CHATGPT_TOKEN,
// debug: true
proxy: process.env.PROXY || null,
};
const browserClient = async ({ text, progressCallback, convo }) => {