问HN:应用程序请求文本补全作为服务的标准方式是什么?
如果我正在编写一个新的轻量级应用程序,需要基于大型语言模型(LLM)的文本补全来实现某个功能,是否有标准的方法可以请求用户的操作系统提供补全?<p>例如,假设我正在编写一个小型的文本用户界面(TUI),允许用户浏览 jsonl 文件,并希望创建一个功能来实现自然语言解析。是否有一种新兴的标准,用于实现与平台无关的“将这个自然查询翻译为 jq {natlang-query}:响应在这里:”?<p>如果我们还没有这样的标准,那么需要什么才能建立并广泛提供这个功能?
查看原文
If I'm writing a new lightweight application that requires LLM-based text completion to power a feature, is there a standard way to request the user's operating system to provide a completion?<p>For instance, imagine I'm writing a small TUI that allows you to browse jsonl files, and want to create a feature to enable natural language parsing. Is there an emerging standard for an implementation agnostic, "Translate this natural query to jq {natlang-query}: response here: "?<p>If we don't have this yet, what would it take to get this built and broadly available?