V3.1 release#217
Conversation
📝 WalkthroughWalkthroughVersion 3.1.0 release update with documentation of WebGPU support. WASM CDN asset mapping key refactored from 'wllama.wasm' to 'default'. Package version bumped, generator script and output regenerated. README and V3.1 guide clarify automatic WebGPU enablement with GPU layer control via ChangesV3.1 Release
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Around line 68-70: The README’s WebGPU section claims automatic enabling in
V3.1 but omits browser/flag limitations; add a one-line caveat after the
sentence about automatic enabling noting that WebGPU depends on browser/OS
support and may require enabling experimental flags (e.g., Chrome://flags or
Safari Technology Preview) or GPU drivers, and that behavior can vary by
platform; reference the existing WebGPU paragraph and the parameters mentioned
(n_gpu_layers, LoadModelParams) so readers see the note in context.
In `@scripts/generate_wasm_from_cdn.js`:
- Around line 12-14: WasmFromCDN currently only exports a default key which
breaks consumers expecting the previous 'wllama.wasm' property; update the
generated object (WasmFromCDN) to include both keys — keep the existing
'wllama.wasm' entry mapped to the CDN URL and also provide a 'default' entry
(both pointing to the same template URL using ${version}) so older consumers and
new imports remain compatible.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7dc712b9-29f6-42e1-8285-5fbdf3c7e4cd
📒 Files selected for processing (5)
README.mdguides/intro-v3.1.mdpackage.jsonscripts/generate_wasm_from_cdn.jssrc/wasm-from-cdn.ts
V3.1 release with WebGPU support and single-build
Summary by CodeRabbit
New Features
Documentation