V4 (docs): add Vercel AI SDK integration with browser-ai/transformers-js package#1515
V4 (docs): add Vercel AI SDK integration with browser-ai/transformers-js package#1515jakobhoeg wants to merge 8 commits intohuggingface:v4from
Conversation
|
@nico-martin let me know what you think :) |
|
Hi @jakobhoeg, I'm really sorry it took me so long to answer. We were quite busy with demos based on v4 and some issues, but I'm looking at it right now :) |
|
Hi @nico-martin, |
|
Right now the Build PR Documentation workflow fails. I think you need to add the new files to the Table of contents: packages/transformers/docs/source/_toctree.yml
- local: tutorials/next-ai-sdk
title: Building a Next.js AI Chatbot with Vercel AI SDKAdd this as the last item in the
- local: guides/vercel-ai-sdk
title: Using Transformers.js with the Vercel AI SDKAdd this as the last item in the |
Co-authored-by: Nico Martin <mail@nico.dev>
|
Hi @nico-martin, EDIT: After reviewing the doc link below, I've also pushed some minor refinements that have changed since opening the PR. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
@nico-martin pushed some minor adjustments |
This PR proposes adding documentation for using Transformers.js with the Vercel AI SDK via the @browser-ai/transformers-js community model provider. This is an idea/suggestion for the core docs, happy to adjust or remove if you feel like it doesn't fit.
Closes #1389
Summary
Adds a developer guide (docs/source/guides/vercel-ai-sdk.md) covering usage of Transformers.js as a Vercel AI SDK model provider via @browser-ai/transformers-js npm package. Text generation, embeddings, vision, transcription, tool calling, Web Workers, download progress, useChat transport, and browser fallback.
Adds a step-by-step tutorial (docs/source/tutorials/next-ai-sdk.md) for building a Next.js AI chatbot from scratch with WebGPU, tool calling, and human-in-the-loop approval.