:zap: [Enhance] Use hard-coded bing models
Browse files
components/llm_models_loader.js
CHANGED
@@ -9,19 +9,18 @@ export async function setup_hardcoded_available_models_on_select(
|
|
9 |
var select = $("#available-models-select");
|
10 |
select.empty();
|
11 |
const hardcoded_models = [
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"mistral-7b-instruct",
|
19 |
];
|
20 |
hardcoded_models.forEach((value, index) => {
|
21 |
const option = new Option(value, value);
|
22 |
select.append(option);
|
23 |
});
|
24 |
-
let default_model = "
|
25 |
let local_default_model = localStorage.getItem("default_model");
|
26 |
if (local_default_model && hardcoded_models.includes(local_default_model)) {
|
27 |
default_model = local_default_model;
|
|
|
9 |
var select = $("#available-models-select");
|
10 |
select.empty();
|
11 |
const hardcoded_models = [
|
12 |
+
"precise",
|
13 |
+
"balanced",
|
14 |
+
"creative",
|
15 |
+
"precise-offline",
|
16 |
+
"balanced-offline",
|
17 |
+
"creative-offline",
|
|
|
18 |
];
|
19 |
hardcoded_models.forEach((value, index) => {
|
20 |
const option = new Option(value, value);
|
21 |
select.append(option);
|
22 |
});
|
23 |
+
let default_model = "precise";
|
24 |
let local_default_model = localStorage.getItem("default_model");
|
25 |
if (local_default_model && hardcoded_models.includes(local_default_model)) {
|
26 |
default_model = local_default_model;
|