Skip to content

Commit 20e8e6d

Browse files
committed
Update lib version
1 parent e487433 commit 20e8e6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as webllm from "https://unpkg.com/@mlc-ai/[email protected].78";
1+
import * as webllm from "https://unpkg.com/@mlc-ai/[email protected].79";
22
import { marked } from "https://unpkg.com/[email protected]/lib/marked.esm.js";
33
import DOMPurify from "https://unpkg.com/[email protected]/dist/purify.es.mjs";
44

@@ -119,7 +119,8 @@ const appConfig = {model_list:[]};
119119
for(const m of webllm.prebuiltAppConfig.model_list) {
120120
if (m.model_id.startsWith('Qwen2.5-7B')
121121
|| (m.model_id.startsWith('Llama-3.1-8B-') && !m.model_id.endsWith('-1k'))
122-
|| m.model_id.startsWith('Hermes-3-Llama-3.1'))
122+
|| m.model_id.startsWith('Hermes-3-Llama-3.1')
123+
|| m.model_id.startsWith('Qwen3-8B'))
123124
appConfig.model_list.push(m);
124125
}
125126

@@ -560,6 +561,8 @@ class ToolHanler {
560561
constructor(model_id) {
561562
if (model_id.startsWith('Qwen2.5'))
562563
this.mode = 'qwen';
564+
else if (model_id.startsWith('Qwen3'))
565+
this.mode = 'qwen';
563566
else if (model_id.startsWith('Hermes-3-Llama'))
564567
this.mode = 'hermes3_llama'
565568
else if (model_id.startsWith('Llama-3.1-Storm'))

0 commit comments

Comments
 (0)