UntilDot commited on
Commit
5152689
·
verified ·
1 Parent(s): f9b0ba1

Update static/script.js

Browse files
Files changed (1) hide show
  1. 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
- "LLM-A": document.getElementById("modelA").dataset.value || "deepseek/deepseek-chat-v3-0324:free",
164
- "LLM-B": document.getElementById("modelB").dataset.value || "google/gemini-2.0-flash-exp:free",
165
- "LLM-C": document.getElementById("modelC").dataset.value || "meta-llama/llama-4-maverick:free",
166
- "LLM-D": document.getElementById("aggregator").dataset.value || "google/gemini-2.5-pro-exp-03-25:free"
167
- };
168
-
169
- // Start loaders for LLM-A, LLM-B, LLM-C
170
- ["A", "B", "C"].forEach(id => showLoader(id));
171
-
172
- // Prepare settings object normally
173
- const settings = {
174
- models: {
175
- "LLM-A": selections["LLM-A"],
176
- "LLM-B": selections["LLM-B"],
177
- "LLM-C": selections["LLM-C"]
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", {