我将 1983 年的 Unix talk 改造成了我的人工智能界面。
I turned Unix talk from 1983 into the interface for my AI

原始链接: https://en.andros.dev/blog/09a21bdd/i-turned-unix-talk-from-1983-into-the-interface-for-my-ai/

作者通过一套系统架起了 40 年前技术与现代人工智能之间的桥梁,允许用户使用经典的 Unix `talk` 命令与大语言模型进行对话。 通过在服务器上运行自定义的桥接脚本,作者置身于 `talk` 守护进程与用户之间。终端模拟器(`pyte`)负责读取输入,并将 AI 视为已登录用户,通过在 `utmp` 中正确注册来实现。当用户发送消息时,桥接程序将其转发给 AI API,再将 AI 生成的回复逐字符地流式传输回来。 这种方式创造了一种流畅而富有诗意的体验,让大语言模型能够模拟人类在终端连接上那种缓慢而有节奏的打字过程。虽然该项目仅是一个“有趣的实验”,但它凸显了传统协议与现代生成式技术之间奇妙的兼容性。

```Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 我将 1983 年的 Unix talk 程序改造成了我 AI 的交互界面 (andros.dev) 4 点积分,由 ibobev 于 2 小时前发布 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 nenadg 0 分钟前 [–] 我在 90 年代用过 talk,非常喜欢它,至今仍很怀念。将它与大语言模型结合是一个很棒的创意。 回复 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索: ```
相关文章

原文

After writing yesterday's article about the talk command, I realized there is a poetic bond between the past and the future: talk transmits character by character, and an LLM emits token by token in streaming. It is candy for any programmer.

So I built a little bridge. If someone runs talk ai@host-where-the-ai-lives from the VPN, an AI answers on the other side.

Help me keep writing

Every coffee gives me a push toward the next article.

联系我们 contact @ memedata.com