mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-11-01 03:52:43 +08:00
Report erros in UI by default
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<span class="label">Report errors</span>
|
<span class="label">Report errors</span>
|
||||||
<input type="checkbox" id="report_error"/>
|
<input type="checkbox" id="report_error" checked/>
|
||||||
<label for="report_error" class="toogle" title=""></label>
|
<label for="report_error" class="toogle" title=""></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="field box">
|
<div class="field box">
|
||||||
|
|||||||
@@ -2302,7 +2302,7 @@ async function api(ressource, args=null, files=null, message_id=null, scroll=tru
|
|||||||
}
|
}
|
||||||
} else if (args) {
|
} else if (args) {
|
||||||
if (ressource == "log") {
|
if (ressource == "log") {
|
||||||
if (appStorage.getItem("report_error") != "true") {
|
if (!document.getElementById("report_error").checked) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
url = `https://roxky-g4f-demo.hf.space${url}`;
|
url = `https://roxky-g4f-demo.hf.space${url}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user