summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-23 19:56:52 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-23 19:56:52 +0200
commitc9c1aa121dbfae4e6e09bc725af9493a148a2162 (patch)
treee681d6919241cd10406643e12c48d3960b5f52eb /g4f/gui/client
parentAdd conversation title change in gui (diff)
downloadgpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar.gz
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar.bz2
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar.lz
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar.xz
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.tar.zst
gpt4free-c9c1aa121dbfae4e6e09bc725af9493a148a2162.zip
Diffstat (limited to 'g4f/gui/client')
-rw-r--r--g4f/gui/client/index.html5
-rw-r--r--g4f/gui/client/static/js/chat.v1.js2
2 files changed, 5 insertions, 2 deletions
diff --git a/g4f/gui/client/index.html b/g4f/gui/client/index.html
index cfca51a9..66bcaaab 100644
--- a/g4f/gui/client/index.html
+++ b/g4f/gui/client/index.html
@@ -147,7 +147,7 @@
</div>
<div class="field box">
<label for="OpenaiAccount-api_key" class="label" title="">OpenAI ChatGPT:</label>
- <textarea id="OpenaiAccount-api_key" name="OpenaiAccount[api_key]" placeholder="access_key"></textarea>
+ <textarea id="OpenaiAccount-api_key" name="OpenaiAccount[api_key]" class="OpenaiChat-api_key" placeholder="access_key"></textarea>
</div>
<div class="field box">
<label for="OpenRouter-api_key" class="label" title="">OpenRouter:</label>
@@ -230,9 +230,10 @@
<select name="provider" id="provider">
<option value="">Provider: Auto</option>
<option value="Bing">Bing</option>
- <option value="OpenaiChat">OpenaiChat</option>
+ <option value="OpenaiChat">OpenAI ChatGPT</option>
<option value="Gemini">Gemini</option>
<option value="Liaobots">Liaobots</option>
+ <option value="MetaAI">Meta AI</option>
<option value="You">You</option>
<option value="">----</option>
</select>
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);