微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⚛️

React AI 聊天界面开发专家

ai-sdk-ui · vv0.1.0
专业技能 安全 S+ 级 作者 Veeramanikandanr48 来源 Cocoloop

简介

基于 Vercel AI SDK v6 的 React 前端开发技能,提供 useChat/useCompletion 钩子实战模板与 18 种 UI 错误解决方案,支持工具审批工作流与流式响应,助开发者构建生产级 AI 聊天应用。

原始描述

Build React chat interfaces with Vercel AI SDK v6. Covers useChat/useCompletion/useObject hooks, message parts structure, tool approval workflows, and 18 UI error solutions. Prevents documented issues with React Strict Mode, concurrent requests, stale closures, and tool approval edge cases. Use when: implementing AI chat UIs, migrating v5→v6, troubleshooting "useChat failed to parse stream", "stale body values", "React maximum update depth", "Cannot read properties of undefined (reading 'state')", or tool approval workflow errors.

标签

reactfrontenddevelopment-engineeringaichatbotnextjsproductivity

同类 Skill