Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set MLCEngineConfig.logLevel optional in config.ts #439

Merged
merged 1 commit into from
May 31, 2024

Conversation

felladrin
Copy link
Contributor

@felladrin felladrin commented May 30, 2024

Follow up from #427 to prevent the following type issue introduced on v0.2.39:

image

This issue fails type-checking [reference] and forces users to define the logLevel config.
But in fact, logLevel already has a default value and was intended to be an optional parameter.
This PR fixes it.

@Neet-Nestor
Copy link
Contributor

Thank you!

@CharlieFRuan CharlieFRuan merged commit 831563c into mlc-ai:main May 31, 2024
1 check passed
CharlieFRuan added a commit that referenced this pull request May 31, 2024
### Changes
This patch contains various small fixes:
- Allow `log` from `engine.ts` and `llm_chat.ts`, etc. to show in
service and web worker
-
e720f2a
- Fix `index.js.map` issue for Vite
  - #440
- Make `MLCEngineConfig.logLevel` optional
  - #439

### TVMjs
No change, TVMjs compiled at
apache/tvm@71f7af7

### WASM version
- No change -- 0.2.39
@felladrin felladrin deleted the patch-1 branch May 31, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants