feat: support config host name and proxy address

This commit is contained in:
Wentao Lyu 2023-03-10 21:05:35 +08:00
parent 4e616cd2ed
commit 67156f4a7a
5 changed files with 13 additions and 3 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 }) => {