Update static/script.js
Browse files- static/script.js +16 -18
static/script.js
CHANGED
@@ -160,24 +160,22 @@ chatForm.addEventListener("submit", async (e) => {
|
|
160 |
configPanel.classList.add("minimal");
|
161 |
|
162 |
const selections = {
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
};
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
}
|
179 |
-
aggregator: selections["LLM-D"]
|
180 |
-
};
|
181 |
|
182 |
try {
|
183 |
const response = await fetch("/chat", {
|
|
|
160 |
configPanel.classList.add("minimal");
|
161 |
|
162 |
const selections = {
|
163 |
+
"LLM-A": document.getElementById("modelA").dataset.value,
|
164 |
+
"LLM-B": document.getElementById("modelB").dataset.value,
|
165 |
+
"LLM-C": document.getElementById("modelC").dataset.value,
|
166 |
+
"LLM-D": document.getElementById("aggregator").dataset.value
|
167 |
+
};
|
168 |
+
|
169 |
+
["A", "B", "C"].forEach(id => showLoader(id));
|
170 |
+
|
171 |
+
const settings = {
|
172 |
+
models: {
|
173 |
+
"LLM-A": selections["LLM-A"],
|
174 |
+
"LLM-B": selections["LLM-B"],
|
175 |
+
"LLM-C": selections["LLM-C"]
|
176 |
+
},
|
177 |
+
aggregator: selections["LLM-D"]
|
178 |
+
};
|
|
|
|
|
179 |
|
180 |
try {
|
181 |
const response = await fetch("/chat", {
|