Skip to content

v0.8.3

Latest

Choose a tag to compare

@blove blove released this 26 Oct 23:11
· 93 commits to main since this release
a244178

This patch publishes the application-owned WebLLM image and structured-tool APIs in @hashbrownai/core, with all ten SDK packages aligned at 0.8.3. Hashbrown does not add WebLLM as a dependency; applications retain model loading, downloads, caching and unloading.

🧪 Experimental additions

  • core: enable opt-in image input with application-owned WebLLM engines through experimental_webllm({ engine, media: { images: {}, resolve } }). Export the image content, resolver, resource, and policy types; validate bounded media inputs and preserve shared engine ownership/cancellation. Hashbrown adds no WebLLM dependency and does not load or unload the application's model (#764).
  • core: add experimental_webllm_tools({ engine, toolPhase }) for application-selected, text-only tool phases followed by structured output or trusted component UI. Buffer and validate complete JSON arguments before canonical dispatch, preserve exact call/result replay, and retain handler-owned permissions. This uses structured output rather than native WebLLM tool mode; existing text/image defaults remain unchanged (#772).

🩹 Fixes

  • core: reject arrays where an object schema is required, including nested and anyOf validation. Strict WebLLM tool arguments also reject unsupported formats, reserved property names, and enum/type combinations that could otherwise be weakened by schema conversion (#772).

📖 Documentation and qualification

  • Document both WebLLM opt-ins for React and Angular, with local-only aimock/worker contracts and separate real-worker qualification. The fixed image cases and six text-only tool/schema/single-component cases passed with the tested WebLLM 0.2.86 / Phi-3.5 Vision configuration on an M1 Max. Broader/nested/media tool UI and other models/devices remain unqualified; audio and cross-hardware testing remain deferred (#764, #772).
  • Update .NET Chat Completions/Responses recipes and durable recovery evidence; this does not publish a Hashbrown NuGet package. Expand the canonical docs workbench and refresh the docs-site design (#770, #769, #771, #777).

Verification

All ten packages are verified at 0.8.3 on npm’s latest tag. Official registry tarballs pass SHA-512/SHA-1 integrity and dependency checks, and all report the release commit. A fresh npm consumer passes seven model-free ESM/CJS runtime cases for text, image input and structured tools, strict TypeScript checks for React/Angular integration, and installed-manifest/origin checks. No WebLLM dependency is installed.

The release PR records package checks and retained warnings. The publisher’s Chromium prerequisite was repaired in #785 before successful trusted publication; the v0.8.3 tag and SDK source remain unchanged. Local model e2e targets remain opt-in and refuse CI; audio and cross-hardware work remain deferred.