ai-sdk-ui-v7

Installation
SKILL.md

Skill: ai-sdk-ui

Scope

  • Applies to: @ai-sdk/react useChat and DefaultChatTransport from ai
  • Does NOT cover: Backend generation (see ai-sdk-core)

Assumptions

  • SDK major is ai ^7; @ai-sdk/react is a separate package major. Folder follows ai
  • Never write useChat from memory. Grep node_modules/@ai-sdk/react/docs/ and node_modules/ai/docs/, else https://ai-sdk.dev/docs/ai-sdk-ui/chatbot
  • Chat HTTP may be Fastify; pass transport when the URL is not /api/chat

Principles

  • useChat from @ai-sdk/react; DefaultChatTransport from ai
  • Local input state; sendMessage({ text }); status not isLoading; render message.parts
  • Server: see ai-sdk-core. New code uses stateless stream helpers. Do not migrate existing toUIMessageStreamResponse() unless asked
Installs
4
GitHub Stars
1
First Seen
3 days ago
ai-sdk-ui-v7 — blockmatic/basilic-skills