summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-18 19:21:08 +0100
committerGitHub <noreply@github.com>2024-11-18 19:21:08 +0100
commitb93711529e2b32aaac589814d77863b74373ffe4 (patch)
tree447a5232ae89c2775608c237330f3aa0ecc379a7 /g4f/gui/client
parentUpdate Blackbox.py (diff)
parentUpdate unittests (diff)
downloadgpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar.gz
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar.bz2
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar.lz
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar.xz
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.tar.zst
gpt4free-b93711529e2b32aaac589814d77863b74373ffe4.zip
Diffstat (limited to 'g4f/gui/client')
-rw-r--r--g4f/gui/client/index.html1
-rw-r--r--g4f/gui/client/static/js/chat.v1.js5
2 files changed, 4 insertions, 2 deletions
diff --git a/g4f/gui/client/index.html b/g4f/gui/client/index.html
index e650d7e0..63e47b3f 100644
--- a/g4f/gui/client/index.html
+++ b/g4f/gui/client/index.html
@@ -245,6 +245,7 @@
<select name="provider" id="provider">
<option value="">Provider: Auto</option>
<option value="OpenaiChat">OpenAI ChatGPT</option>
+ <option value="Copilot">Microsoft Copilot</option>
<option value="ChatGpt">ChatGpt</option>
<option value="Gemini">Gemini</option>
<option value="MetaAI">Meta AI</option>
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js
index 42ddb129..580cbf77 100644
--- a/g4f/gui/client/static/js/chat.v1.js
+++ b/g4f/gui/client/static/js/chat.v1.js
@@ -1367,7 +1367,8 @@ async function load_provider_models(providerIndex=null) {
modelProvider.classList.remove("hidden");
models.forEach((model) => {
let option = document.createElement('option');
- option.value = option.text = model.model;
+ option.value = model.model;
+ option.text = `${model.model}${model.image ? " (Image Generation)" : ""}${model.vision ? " (Image Upload)" : ""}`;
option.selected = model.default;
modelProvider.appendChild(option);
});
@@ -1381,7 +1382,7 @@ providerSelect.addEventListener("change", () => load_provider_models());
function save_storage() {
let filename = `chat ${new Date().toLocaleString()}.json`.replaceAll(":", "-");
let data = {"options": {"g4f": ""}};
- for (let i = 0; i < appStorage.length; i++){
+ for (let i = 0; i < appStorage.length; i++){label
let key = appStorage.key(i);
let item = appStorage.getItem(key);
if (key.startsWith("conversation:")) {