File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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 " ; 22import { marked } from "https://unpkg.com/[email protected] /lib/marked.esm.js" ; 33import DOMPurify from "https://unpkg.com/[email protected] /dist/purify.es.mjs" ; 44
@@ -119,7 +119,8 @@ const appConfig = {model_list:[]};
119119for ( 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' ) )
You can’t perform that action at this time.
0 commit comments