TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Chatbladder, a Ruby wrapper for Chatblade

1 点作者 dzsekijo大约 2 年前
Why?<p>Looking for a viable solution for interactive interaction with ChatGPT from terminal.<p>Why wrap?<p>There are two kind of interaction models I saw in ChatGPT command line clients:<p>- REPL. However, a REPL is painful without mature line editing capabilities, and these programs have not progressed as far as to have this under their belt. - Direct command line invocation. Popular shells do have sophisticated line editing, but the rudimentary shell &quot;string syntax&quot; makes this style of usage painful whenever punctuation and quotation comes to picture, which is the natural case for natural language.<p>So the idea came that input for the client could be obtained via another REPL which has a proper solution to the above issues.<p>Why wrap in Ruby?<p>Ruby&#x27;s default REPL, Irb has acquired decent line editing capabilities (via the Reline library). Ruby has rich string literal syntax that allows inputting punctuation and quotation without the need of escaping.

暂无评论

暂无评论