summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/client/static/js')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js
index 46f7e808..8933b442 100644
--- a/g4f/gui/client/static/js/chat.v1.js
+++ b/g4f/gui/client/static/js/chat.v1.js
@@ -1026,9 +1026,10 @@ async function on_api() {
});
providers = await api("providers")
- providers.forEach((provider) => {
+ Object.entries(providers).forEach(([provider, label]) => {
let option = document.createElement("option");
- option.value = option.text = provider;
+ option.value = provider;
+ option.text = label;
providerSelect.appendChild(option);
})