简介
基于 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.
标签
同类 Skill
📝
让AI记住教训,不再重复犯错
Self-Improving Agent
下载 422.4k
✨
AI自我进化·持续学习沉淀
self-improving-agent
下载 420k
✨
AI技能安装前的安全守门员
Skill Vetter
下载 226.1k
🧠
越用越懂你的AI记忆进化系统
Self-Improving + Proactive Agent
下载 179.5k
🧠
越用越懂你的 AI 自我进化系统
Self-Improving + Proactive Agent
下载 177.1k
🧠
让AI记住你的每一次纠正
Self-Improving + Proactive Agent
下载 177.1k