Show HN:我用 CopilotKit 的新 Generative UI 构建了一个增强版 AI 聊天
Source: HN AI Published: AI English AIGenerativeUICopilotKit
Translation(model translation, not the source's own text)
CopilotKit Generative UI 示例
设置
使用 npm install 安装依赖。
在 OpenAI 平台创建一个 OpenAI API key。
将 OPENAI_API_KEY=your_api_key 添加到 .env.local。
使用 npm run dev 启动应用。更改密钥后请重启服务器。
该应用使用 gpt-6-luna。使用 OpenAI API 可能会产生费用;请参阅定价页面。
appapp diagram
Only about 439 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.
Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.