diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-12 20:58:40 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-12 20:58:40 +0200 |
commit | f724c07f1b8cb1b2360d8c6675688b15cbcd85ca (patch) | |
tree | 30a7f0a12c3f959fc5da519356b9d82c6f1520d7 /g4f/gui/client/static/js | |
parent | update default gpt-3.5-turbo models (diff) | |
download | gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.gz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.bz2 gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.lz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.xz gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.tar.zst gpt4free-f724c07f1b8cb1b2360d8c6675688b15cbcd85ca.zip |
Diffstat (limited to 'g4f/gui/client/static/js')
-rw-r--r-- | g4f/gui/client/static/js/chat.v1.js | 5 |
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); }) |