fix: add proxy to bingai too

This commit is contained in:
Wentao Lyu 2023-03-11 15:02:26 +08:00
parent c5c865a25f
commit 97668217b9

View file

@ -10,7 +10,8 @@ const askBing = async ({ text, progressCallback, convo }) => {
// If the above doesn't work, provide all your cookies as a string instead
// cookies: '',
debug: false,
cache: { store: new KeyvFile({ filename: './data/cache.json' }) }
cache: { store: new KeyvFile({ filename: './data/cache.json' }) },
proxy: process.env.PROXY || null,
});
let options = {