From f797ec828ce3b5965796b437878e14b6eec6235b Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 16 Mar 2024 20:02:15 +0100 Subject: Fix GigaChat exceptions, Raise missing browser error --- g4f/gui/client/static/css/style.css | 10 ++++------ g4f/gui/client/static/js/chat.v1.js | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'g4f/gui') diff --git a/g4f/gui/client/static/css/style.css b/g4f/gui/client/static/css/style.css index ba3f1187..936df0d2 100644 --- a/g4f/gui/client/static/css/style.css +++ b/g4f/gui/client/static/css/style.css @@ -653,12 +653,10 @@ select { width: 100%; } -.bottom_buttons button span { - color: var(--colour-3); - font-size: 14px; -} - -.bottom_buttons button a { +.bottom_buttons button a, +.bottom_buttons button span, +.bottom_buttons .info a, +.bottom_buttons .info i { color: var(--colour-3); font-weight: 500; } diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index 5440fc4a..c2bb77a9 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -819,7 +819,8 @@ async function on_api() { if (versions["version"] != versions["latest_version"]) { let release_url = 'https://github.com/xtekky/gpt4free/releases/tag/' + versions["latest_version"]; let title = `New version: ${versions["latest_version"]}`; - text += `${versions["version"]} 🆕`; + text += `${versions["version"]} `; + text += `` } else { text += versions["version"]; } @@ -994,8 +995,7 @@ async function load_provider_models(providerIndex=null) { providerSelect.addEventListener("change", () => load_provider_models()); function save_storage() { - let filename = new Date().toLocaleString() - filename += ".json" + let filename = `chat ${new Date().toLocaleString()}.json`.replaceAll(":", "-"); let data = {"options": {"g4f": ""}}; for (let i = 0; i < appStorage.length; i++){ let key = appStorage.key(i); -- cgit v1.2.3