From c9c1aa121dbfae4e6e09bc725af9493a148a2162 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 23 Apr 2024 19:56:52 +0200 Subject: Fix issue with You.com and nodriver Show global model list when unselect provider --- g4f/gui/client/static/js/chat.v1.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g4f/gui/client/static/js/chat.v1.js') diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index d5988c26..23605ed4 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -1246,6 +1246,8 @@ async function load_provider_models(providerIndex=null) { } const provider = providerSelect.options[providerIndex].value; if (!provider) { + modelProvider.classList.add("hidden"); + modelSelect.classList.remove("hidden"); return; } const models = await api('models', provider); -- cgit v1.2.3