From 97668217b93f67948728ae265875f1a7ceea602c Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Sat, 11 Mar 2023 15:02:26 +0800 Subject: [PATCH] fix: add proxy to bingai too --- api/app/bingai.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app/bingai.js b/api/app/bingai.js index 4dfa8a71d5..d1175c0bfc 100644 --- a/api/app/bingai.js +++ b/api/app/bingai.js @@ -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 = {