TypeScript / React 相接器 相接器 AI 聊天库
<a href='https://www.assistant-ui.com">(英语:ZZURL0 ZHZ) 维基语录链接:名人名言 - 文学作品 - 谚语 - 谚语 < 图片> < source media="(偏好-彩色-scheme: 暗色)" srcset="https://raw.githubusercontent.com/assistant-ui/assistant-ui/main/.github/assets/header-dark.svg" /" < source media="(首选-彩色-scheme:光)" srcset="https://raw.githubusercontent.com/assistant-ui/assistant-ui/main/.github/assets/header.svg" /"
</图片> (简体中文)
<p对齐="中心"> = = <a href='https://www.assistant-ui.com/docs">Documentation → (中文(简体) ). Examples → (中文(简体) ). <a href='https://discord.gg/S9dwgCNEFs">Discord → (中文(简体) ). <a href='https://cal.com/simon-farshid/assistant-ui">Contact 销售
(中文(简体) ).□ 在您的 React 应用程序中的 ChatGPT
** Assistant-ui**是一个开源的TypeScript/React库,用于快速构建生产级AI聊天体验.
□ 安装
最快的路径是CLI,它会脚手架上一个Next.js应用,或者将有样式的组件添加到现有的工程中:
(原始内容存档于2019-09-29) (英语). ```bash npx assistant-ui@latest create # new project npx assistant-ui@latest init # add to existing project
或者直接安装软件包 :
ZZ1ZZ
□ 使用量
(原始内容存档于2019-09-29). ```tsx
"use client";
import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime } from "@assistant-ui/ai-sdk";
import { Thread } from "@/components/assistant-ui/elements/thread.aui";
export function Chat() {
const runtime = useChatRuntime();
return (
<AssistantRuntimeProvider runtime={runtime}>
<Thread />
</AssistantRuntimeProvider>
);
}" 使用ChatRuntime " 连接箱外的Vercel AI SDK。 换成“使用LangGraphRuntime”、“使用DataStreamRuntime”或任何自定义的运行时间,与自己的后端集成。 ∮你得到的∮
Thread'、Message'、Composer'、ThreadList'、`ActionBar'和朋友那里建立任何聊天UX。 给您自己样式每个像素, 或者从一个被擦亮的 shadcn/ ui 主题开始, CLI 复制到您的项目中 。React-ag-ui: 适配器仍然依赖 @ag-ui/client ^0.0.59,而工作区已升级到 1.0
[React] 从其他位置开始的运行会将焦点从另一个文本域移动到编辑器中
其他运行时钩子在快速刷新时仍会丢失正在运行的工作
feat(demos): 添加键盘线程管理和共享终端侧栏
核心: 在排队派发通知期间取消会导致消息队列停滞
ai-sdk: 对于后续转为关注的消息进行批准操作无效
ci: Claude-review 在没有发布评论的大 PR 中失败
ci: 将模板占地面积上限恢复为 300
docs: element-docs.ts 条目永远不会渲染
[React-ag-ui] 当运行时使用 MESSAGES_SNAPSHOT 开始时,在调用工具后,会重新生成答案,而删除之前的答案