Hansimov commited on
Commit
7941ee3
1 Parent(s): 9136fd8

:zap: [Enhance] Resort and filter available models

Browse files
apps/llm_mixer/js/llm_models_loader.js CHANGED
@@ -7,10 +7,52 @@ export async function setup_available_models_on_select(default_option = null) {
7
  if (default_option === null) {
8
  default_option = "gpt-3.5-turbo";
9
  }
10
-
11
- available_models.forEach((value, index) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  const option = new Option(value, value);
13
- select.append(option);
 
 
14
  if (value === default_option) {
15
  $(option).prop("selected", true);
16
  }
 
7
  if (default_option === null) {
8
  default_option = "gpt-3.5-turbo";
9
  }
10
+ const working_models = [
11
+ "bing-precise",
12
+ "bing-balanced",
13
+ "bing-creative",
14
+ // "bing-dall-e", // not work
15
+ "bing-gpt-4",
16
+ "bing-gpt-4-32k",
17
+ // "bingo-balanced", // not work
18
+ // "bingo-creative", // not work
19
+ // "bingo-precise", // not work
20
+ "claude-2",
21
+ "gpt-3.5-turbo",
22
+ "gpt-3.5-turbo-internet",
23
+ "gpt-4",
24
+ "gpt-4-32k",
25
+ "gpt-4-internet",
26
+ // "pandora-gpt-3.5-turbo", // not work
27
+ // "poe-claude-2-100k", // not work
28
+ "poe-claude-instant",
29
+ "poe-claude-instant-100k",
30
+ // "poe-code-llama-13b",
31
+ // "poe-code-llama-34b",
32
+ // "poe-code-llama-7b",
33
+ // "poe-dolly-v2-12b", // not work
34
+ "poe-google-palm",
35
+ "poe-gpt-3.5-turbo",
36
+ // "poe-gpt-3.5-turbo-16k", // not work
37
+ "poe-gpt-3.5-turbo-instruct",
38
+ "poe-gpt-4",
39
+ "poe-gpt-4-32k",
40
+ // "poe-llama-2-13b",
41
+ // "poe-llama-2-70b",
42
+ // "poe-llama-2-7b",
43
+ // "poe-nous-hermes-13b",
44
+ // "poe-nous-hermes-l2-13b", // not work
45
+ // "poe-saga",
46
+ // "poe-solar-0-70b",
47
+ // "poe-stablediffusion-xl", // not work
48
+ // "poe-starcoderchat", // not work
49
+ "poe-web-search",
50
+ ];
51
+ working_models.forEach((value, index) => {
52
  const option = new Option(value, value);
53
+ if (available_models.includes(value)) {
54
+ select.append(option);
55
+ }
56
  if (value === default_option) {
57
  $(option).prop("selected", true);
58
  }