Hansimov commited on
Commit
eff6959
β€’
1 Parent(s): 415a003

:zap: [Enhance] Filter available models

Browse files
Files changed (2) hide show
  1. README.md +5 -1
  2. js/llm_models_loader.js +16 -11
README.md CHANGED
@@ -4,4 +4,8 @@ emoji: πŸ”€
4
  colorFrom: gray
5
  colorTo: gray
6
  sdk: static
7
- ---
 
 
 
 
 
4
  colorFrom: gray
5
  colorTo: gray
6
  sdk: static
7
+ ---
8
+
9
+ Mirrors:
10
+ * https://hansimov-llm-mixer.static.hf.space
11
+ * https://hansimov.github.io/llm-mixer/
js/llm_models_loader.js CHANGED
@@ -9,17 +9,17 @@ export async function setup_available_models_on_select(default_option = null) {
9
  "bing-balanced",
10
  "bing-creative",
11
  // "bing-dall-e", // not work
12
- "bing-gpt-4",
13
- "bing-gpt-4-32k",
14
  // "bingo-balanced", // not work
15
  // "bingo-creative", // not work
16
  // "bingo-precise", // not work
17
  "claude-2",
18
  "gpt-3.5-turbo",
19
  "gpt-3.5-turbo-internet",
20
- "gpt-4",
21
- "gpt-4-32k",
22
- "gpt-4-internet",
23
  // "pandora-gpt-3.5-turbo", // not work
24
  // "poe-claude-2-100k", // not work
25
  "poe-claude-instant",
@@ -32,15 +32,15 @@ export async function setup_available_models_on_select(default_option = null) {
32
  "poe-gpt-3.5-turbo",
33
  // "poe-gpt-3.5-turbo-16k", // not work
34
  "poe-gpt-3.5-turbo-instruct",
35
- "poe-gpt-4",
36
- "poe-gpt-4-32k",
37
  // "poe-llama-2-13b",
38
  // "poe-llama-2-70b",
39
  // "poe-llama-2-7b",
40
  // "poe-nous-hermes-13b",
41
  // "poe-nous-hermes-l2-13b", // not work
42
- // "poe-saga",
43
- // "poe-solar-0-70b",
44
  // "poe-stablediffusion-xl", // not work
45
  // "poe-starcoderchat", // not work
46
  "poe-web-search",
@@ -52,8 +52,13 @@ export async function setup_available_models_on_select(default_option = null) {
52
  }
53
  });
54
  let default_model = "gpt-turbo-3.5";
55
- if (localStorage.getItem("default_model")) {
56
- default_model = localStorage.getItem("default_model");
 
 
 
 
 
57
  }
58
  select.val(default_model);
59
  console.log(`Default model: ${select.val()}`);
 
9
  "bing-balanced",
10
  "bing-creative",
11
  // "bing-dall-e", // not work
12
+ // "bing-gpt-4", // not work
13
+ // "bing-gpt-4-32k", // not work
14
  // "bingo-balanced", // not work
15
  // "bingo-creative", // not work
16
  // "bingo-precise", // not work
17
  "claude-2",
18
  "gpt-3.5-turbo",
19
  "gpt-3.5-turbo-internet",
20
+ // "gpt-4", // not work
21
+ // "gpt-4-32k", // not work
22
+ // "gpt-4-internet", // not work
23
  // "pandora-gpt-3.5-turbo", // not work
24
  // "poe-claude-2-100k", // not work
25
  "poe-claude-instant",
 
32
  "poe-gpt-3.5-turbo",
33
  // "poe-gpt-3.5-turbo-16k", // not work
34
  "poe-gpt-3.5-turbo-instruct",
35
+ // "poe-gpt-4", // not work
36
+ // "poe-gpt-4-32k", // not work
37
  // "poe-llama-2-13b",
38
  // "poe-llama-2-70b",
39
  // "poe-llama-2-7b",
40
  // "poe-nous-hermes-13b",
41
  // "poe-nous-hermes-l2-13b", // not work
42
+ "poe-saga",
43
+ "poe-solar-0-70b",
44
  // "poe-stablediffusion-xl", // not work
45
  // "poe-starcoderchat", // not work
46
  "poe-web-search",
 
52
  }
53
  });
54
  let default_model = "gpt-turbo-3.5";
55
+ let local_default_model = localStorage.getItem("default_model");
56
+ if (
57
+ local_default_model &&
58
+ working_models.includes(local_default_model) &&
59
+ available_models.includes(local_default_model)
60
+ ) {
61
+ default_model = local_default_model;
62
  }
63
  select.val(default_model);
64
  console.log(`Default model: ${select.val()}`);