Skip to content

Lint v0.16.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 09:40
· 21 commits to main since this release
12c5869

What's new

Let other apps use the local model (optional, off by default). Settings → Model → Other Apps lets apps and web pages on this Mac call Lint's local model through an OpenAI-compatible API at http://127.0.0.1:8001/v1, with the key shown there (Authorization: Bearer <key> or X-Api-Key). Only connections from this Mac are accepted, and only the chat, completion and model-list requests are passed on. Web pages also need their site in Allowed websites (pages on this Mac by default). Chrome and Brave let an allowed https website in; Safari does not let https pages reach an http address on this Mac, so in Safari only pages served from this Mac can use it.

Lint always comes first. When Lint needs the model, another app's request is interrupted at once and, if it had not received anything yet, sent again when Lint is done; while Lint works, and while you type, other requests wait. With another app generating a long answer, a suggestion took 0.4–1.3 s on a test Mac, about the same as with nothing else running.

What's safer

Lint's own model server now answers only Lint. It is started with a key Lint makes each time it starts and never shows, and it no longer lets web pages read its answers. Before, any website open in your browser could use the model on 127.0.0.1:8000. Scripts that called :8000 directly now get 401: switch on Other Apps and use port 8001 with its key.

新功能

讓其他 app 使用本機模型(選用,預設關閉)。「設定 → 模型 → 其他 app 使用」讓這台 Mac 上的其他 app 和網頁,透過 http://127.0.0.1:8001/v1 的 OpenAI 相容 API 呼叫 Lint 的本機模型,金鑰顯示在同一處(Authorization: Bearer <金鑰> 或 X-Api-Key)。只接受這台 Mac 的連線,也只轉送對話、補全與模型清單請求。網頁還需要它的網站在**「允許的網站」**裡(預設是這台 Mac 上的網頁)。Chrome 與 Brave 會放行加入清單的 https 網站;Safari 不讓 https 網頁連到這台 Mac 的 http 位址,所以在 Safari 只有這台 Mac 上的網頁能用。

**Lint 永遠優先。**Lint 需要模型時,其他 app 的請求會立刻被中斷;如果它還沒收到任何回應,Lint 用完後會自動重送。Lint 使用中、或你正在打字時,其他請求會等候。實測在其他 app 正在產生長回答時,建議 0.4–1.3 秒就出來,和沒有其他請求時差不多。

更安全

**Lint 自己的模型服務現在只回應 Lint。**它啟動時帶著 Lint 每次開啟時產生、從不顯示的金鑰,也不再讓網頁讀到它的回應。以前,瀏覽器裡開著的任何網站都能使用 127.0.0.1:8000 上的模型。直接呼叫 :8000 的腳本現在會收到 401:請打開「其他 app 使用」,改用 8001 埠和它的金鑰。

Full Changelog: v0.15.3...v0.16.0