usage

Antigravity 1.4.12

工具與目錄
在這頁

新功能 1 項

01

外掛的 API 金鑰可以設成選填

你剛裝好一個串接網路服務的外掛,想先試試基本功能,手邊卻還沒申請帳號。現在外掛作者可以在外掛的 auth.json 裡,把某個 API 金鑰(向線上服務證明身分的存取密碼)提供者標記成選填,做法是在那一項加上 "optional": true。它適用於不用金鑰也能用、但附上金鑰能提高限流(服務限制單位時間內請求次數的機制)門檻的服務。

標成選填後,你還沒設定金鑰時,外掛指令會把存放金鑰的那個變數當成未設定,直接以免費的限流額度發出未驗證請求。以前同樣的情況會出現 401 錯誤,或跳出要你登入的畫面。⟦跟逛公立展覽館一樣,以前入口一律要看會員證,沒帶就被擋在門外;現在沒登記的訪客也能領普通號碼牌入場,出示會員卡則能換到更多參觀名額。⟧

官方原文

Added "optional": true for API key providers in a plugin's auth.json, for services that work without a key but raise rate limits with one: when you haven't set the key, the plugin's commands now see the variable as unset and make unauthenticated requests at the free rate limit, instead of failing with 401 errors or asking you to sign in.

修正 1 項

02

串流中的長表格完成後才進捲動紀錄,邊框不再歪斜

在終端機收到很長的回覆時,如果裡面有 Markdown 表格,往上翻常會看到版面亂掉。以前在串流(模型一邊生成一邊即時顯示)輸出時,表格列太早被推進捲動紀錄,也就是往上翻看得到的舊畫面,結果留下歪斜的邊框和重複的文字。現在表格各列會先留在即時畫面,等整張表格完成,才用最終欄寬推進捲動紀錄,往上翻就不會再看到錯位。

官方原文

Fixed Markdown tables in long streaming replies leaving misaligned borders and repeated text in your terminal scrollback: a table's rows now stay in the live view until the table is complete, so they reach scrollback with their final column widths.