summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/js/chat.v1.js
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-14 15:22:09 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-14 15:22:09 +0100
commit012f40078a59e6f725f57cdb013451fe0b268206 (patch)
treea3f1da46a1efb97854dd50913fb8d46e8d27e70e /g4f/gui/client/js/chat.v1.js
parentAdd webview support to OpenaiChat (diff)
downloadgpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar.gz
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar.bz2
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar.lz
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar.xz
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.tar.zst
gpt4free-012f40078a59e6f725f57cdb013451fe0b268206.zip
Diffstat (limited to '')
-rw-r--r--g4f/gui/client/js/chat.v1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/client/js/chat.v1.js b/g4f/gui/client/js/chat.v1.js
index c90a594d..59d0351a 100644
--- a/g4f/gui/client/js/chat.v1.js
+++ b/g4f/gui/client/js/chat.v1.js
@@ -938,10 +938,10 @@ async function load_provider_models() {
provider = providerSelect.options[providerSelect.selectedIndex].value;
response = await fetch('/backend-api/v2/models/' + provider);
models = await response.json();
+ modelProvider.innerHTML = '';
if (models.length > 0) {
modelSelect.classList.add("hidden");
modelProvider.classList.remove("hidden");
- modelProvider.innerHTML = '';
models.forEach((model) => {
let option = document.createElement('option');
option.value = option.text = model.model;