Overview of @browser-ai/web-llm
mainThe @browser-ai/web-llm package provides a Vercel AI SDK v7 compatible provider that allows you to run WebLLM compiled models directly in the browser. This enables client-side text generation without relying on external server-side APIs for model inference.
Key Capabilities:
- Language Models: Support for text generation using models like Llama, Qwen, and Phi.
- Tool Calling: Support for function calling using JSON format.
- Structured Output: Ability to generate validated JSON objects.
- Agents: Support for multi-step autonomous workflows.
- Web Worker Support: Executes models off the main thread to ensure a smooth user experience.