XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

what

86f7ea6b
Commenter123321 <36051603+Commenter123321@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified g4f/gui/client/js/chat.v2.js +3 -3
@@ -144,7 +144,7 @@ const ask_gpt = async (message) => {
144 144
145 145 chunk = new TextDecoder().decode(value);
146 146
147 if (chunk.includes(`<form id="challenge-form" action="/backend-api/v2/conversation?")) {
147 if (chunk.includes('<form id="challenge-form" action="/backend-api/v2/conversation?"')) {
148 148 chunk = `cloudflare token expired, please refresh the page.`;
149 149 }
150 150
@@ -161,7 +161,7 @@ const ask_gpt = async (message) => {
161 161 }
162 162
163 163 // if text contains :
164 if (text.includes(`instead. Maintaining this website and API costs a lot of money`)) {
164 if (text.includes("instead. Maintaining this website and API costs a lot of money")) {
165 165 document.getElementById(`gpt_${window.token}`).innerHTML = "An error occured, please reload / refresh cache and try again or use a differnet browser";
166 166 }
167 167
@@ -547,7 +547,7 @@ colorThemes.forEach((themeOption) => {
547 547 setTimeout(() => {
548 548 ads_div = document.querySelector('.ads')
549 549
550 if (ads_div.getElementsByTagName("iframe").length == 0) {
550 if (ads_div != null && ads_div.getElementsByTagName("iframe").length == 0) {
551 551 ads_div.removeChild(ads_div.querySelector('.sorry'))
552 552
553 553 ads_div.innerHTML += `