neetnestor commited on
Commit
a297744
1 Parent(s): d79e943

feat: set log level to "INFO"

Browse files
Files changed (4) hide show
  1. dist/index.js +0 -0
  2. package-lock.json +5 -4
  3. src/index.js +1 -0
  4. yarn.lock +1 -1
dist/index.js CHANGED
The diff for this file is too large to render. See raw diff
 
package-lock.json CHANGED
@@ -10,8 +10,9 @@
10
  "dependencies": {
11
  "@babel/core": "^7.13.15",
12
  "@babel/preset-env": "^7.13.15",
13
- "@mlc-ai/web-llm": "^0.2.56",
14
  "katex": "^0.16.11",
 
15
  "rehype-highlight": "^7.0.0",
16
  "rehype-katex": "^7.0.0",
17
  "rehype-parse": "^9.0.0",
@@ -1656,9 +1657,9 @@
1656
  }
1657
  },
1658
  "node_modules/@mlc-ai/web-llm": {
1659
- "version": "0.2.56",
1660
- "resolved": "https://registry.npmjs.org/@mlc-ai/web-llm/-/web-llm-0.2.56.tgz",
1661
- "integrity": "sha512-CK0Ef7sYLfci3/jWCrjLg4NXlcm47rczbEwEqDcA4Mb30UbP8WzWULhR3dH4Zpy9899qkJB1r5d1l+YndScWWA==",
1662
  "dependencies": {
1663
  "loglevel": "^1.9.1"
1664
  }
 
10
  "dependencies": {
11
  "@babel/core": "^7.13.15",
12
  "@babel/preset-env": "^7.13.15",
13
+ "@mlc-ai/web-llm": "^0.2.62",
14
  "katex": "^0.16.11",
15
+ "loglevel": "^1.9.1",
16
  "rehype-highlight": "^7.0.0",
17
  "rehype-katex": "^7.0.0",
18
  "rehype-parse": "^9.0.0",
 
1657
  }
1658
  },
1659
  "node_modules/@mlc-ai/web-llm": {
1660
+ "version": "0.2.62",
1661
+ "resolved": "https://registry.npmjs.org/@mlc-ai/web-llm/-/web-llm-0.2.62.tgz",
1662
+ "integrity": "sha512-biEYs13nfNjRa4GRVXRsnXLk/yCTslxSH3OjW/4PjoyvZcCtcIe4Aks20WnrMpJMz63ezE6noJF2fkFWStsI0A==",
1663
  "dependencies": {
1664
  "loglevel": "^1.9.1"
1665
  }
src/index.js CHANGED
@@ -40,6 +40,7 @@ function updateEngineInitProgressCallback(report) {
40
  // Create engine instance
41
  let modelLoaded = false;
42
  const engine = new webllm.MLCEngine();
 
43
  engine.setInitProgressCallback(updateEngineInitProgressCallback);
44
 
45
  async function initializeWebLLMEngine() {
 
40
  // Create engine instance
41
  let modelLoaded = false;
42
  const engine = new webllm.MLCEngine();
43
+ engine.setLogLevel("INFO");
44
  engine.setInitProgressCallback(updateEngineInitProgressCallback);
45
 
46
  async function initializeWebLLMEngine() {
yarn.lock CHANGED
@@ -986,7 +986,7 @@
986
 
987
  "@mlc-ai/web-llm@^0.2.62":
988
  version "0.2.62"
989
- resolved "https://registry.yarnpkg.com/@mlc-ai/web-llm/-/web-llm-0.2.62.tgz#cbe0e927e46f95a50f8292c4f5cfea5a9f0a2002"
990
  integrity sha512-biEYs13nfNjRa4GRVXRsnXLk/yCTslxSH3OjW/4PjoyvZcCtcIe4Aks20WnrMpJMz63ezE6noJF2fkFWStsI0A==
991
  dependencies:
992
  loglevel "^1.9.1"
 
986
 
987
  "@mlc-ai/web-llm@^0.2.62":
988
  version "0.2.62"
989
+ resolved "https://registry.npmjs.org/@mlc-ai/web-llm/-/web-llm-0.2.62.tgz"
990
  integrity sha512-biEYs13nfNjRa4GRVXRsnXLk/yCTslxSH3OjW/4PjoyvZcCtcIe4Aks20WnrMpJMz63ezE6noJF2fkFWStsI0A==
991
  dependencies:
992
  loglevel "^1.9.1"