mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-25 04:01:52 +03:00
Remove generate images button
This commit is contained in:
parent
ecf110e59a
commit
d2d8d7fb9e
@ -189,11 +189,13 @@
|
||||
<label for="switch" title="Add the pages of the first 5 search results to the query."></label>
|
||||
<span class="about">Web Access</span>
|
||||
</div>
|
||||
<!--
|
||||
<div class="field">
|
||||
<input type="checkbox" id="patch" />
|
||||
<label for="patch" title="Enable create images with Bing."></label>
|
||||
<span class="about">Image Generator</span>
|
||||
</div>
|
||||
-->
|
||||
<div class="field">
|
||||
<input type="checkbox" id="history" />
|
||||
<label for="history" title="To improve the reaction time or if you have trouble with large conversations."></label>
|
||||
|
@ -245,7 +245,7 @@ const ask_gpt = async () => {
|
||||
jailbreak: jailbreak.options[jailbreak.selectedIndex].value,
|
||||
web_search: document.getElementById(`switch`).checked,
|
||||
provider: provider.options[provider.selectedIndex].value,
|
||||
patch_provider: document.getElementById('patch').checked,
|
||||
patch_provider: document.getElementById('patch')?.checked,
|
||||
messages: messages
|
||||
});
|
||||
const headers = {
|
||||
@ -669,6 +669,9 @@ sidebar_button.addEventListener("click", (event) => {
|
||||
const register_settings_localstorage = async () => {
|
||||
for (id of ["switch", "model", "jailbreak", "patch", "provider", "history"]) {
|
||||
element = document.getElementById(id);
|
||||
if (!element) {
|
||||
continue;
|
||||
}
|
||||
element.addEventListener('change', async (event) => {
|
||||
switch (event.target.type) {
|
||||
case "checkbox":
|
||||
@ -687,7 +690,9 @@ const register_settings_localstorage = async () => {
|
||||
const load_settings_localstorage = async () => {
|
||||
for (id of ["switch", "model", "jailbreak", "patch", "provider", "history"]) {
|
||||
element = document.getElementById(id);
|
||||
value = appStorage.getItem(element.id);
|
||||
if (!element || !(value = appStorage.getItem(element.id))) {
|
||||
continue;
|
||||
}
|
||||
if (value) {
|
||||
switch (element.type) {
|
||||
case "checkbox":
|
||||
|
Loading…
Reference in New Issue
Block a user