From 8964d15dc36338e994285552e2b49435428ca50b Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:48:56 +0100 Subject: ~ | g4f `v-0.1.5.8` --- g4f/gui/client/js/chat.v2.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'g4f/gui/client/js') diff --git a/g4f/gui/client/js/chat.v2.js b/g4f/gui/client/js/chat.v2.js index 24f2e45b..f052b7e6 100644 --- a/g4f/gui/client/js/chat.v2.js +++ b/g4f/gui/client/js/chat.v2.js @@ -144,10 +144,6 @@ const ask_gpt = async (message) => { chunk = new TextDecoder().decode(value); - if (chunk.includes('
{ message_box.scrollTo({ top: message_box.scrollHeight, behavior: "auto" }); } - // if text contains : - if (text.includes("instead. Maintaining this website and API costs a lot of money")) { - document.getElementById(`gpt_${window.token}`).innerHTML = "An error occured, please reload / refresh cache and try again or use a differnet browser"; - } - - if (text.includes(`anerroroccuredmf`)) { + if (text.includes(`G4F_ERROR`)) { document.getElementById(`gpt_${window.token}`).innerHTML = "An error occured, please try again, if the problem persists, please reload / refresh cache or use a differnet browser"; } -- cgit v1.2.3