Skip to content

Commit 238a736

Browse files
committed
update error handler
1 parent a46aee6 commit 238a736

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const availableModels = webllm.prebuiltAppConfig.model_list
194194
.map((m) => m.model_id)
195195
.filter((model_id) => (
196196
model_id.startsWith('Qwen2.5-7B')
197-
// || model_id.startsWith('Hermes-2-Pro-Llama')
197+
|| model_id.startsWith('Hermes-2-Pro-Llama')
198198
|| model_id.startsWith('Hermes-3-Llama-3.1')
199199
|| (model_id.startsWith('Llama-3.1-8B-') && !model_id.endsWith('-1k'))
200200
// || model_id.startsWith('DeepSeek-R1-Distill-Llama-')
@@ -228,8 +228,9 @@ async function onMessageSend() {
228228
.setAttribute("placeholder", "Generating...");
229229

230230
let done = false;
231-
232-
while(!done) {
231+
let iter = 0;
232+
while(!done && item <= 3) {
233+
iter++;
233234
document.getElementById("send").disabled = true;
234235

235236
const aiMessage = {

0 commit comments

Comments
 (0)