跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

avante.nvim 是一個將 AI 程式編碼輔助帶入編輯器的 Neovim 外掛。將它設定為使用 CometAPI 作為後端,即可存取 GPT、Claude 與其他模型。

先決條件

設定

1

取得你的 CometAPI API key

登入 CometAPI 控制台。點擊 Add API Key 並複製你的 key 與 base URL(https://api.cometapi.com)。
CometAPI 控制台 — Add API Key
CometAPI API key 與 base URL
2

編輯你的 avante.nvim 設定

開啟你的 Neovim 設定檔,並將 API 端點設為 https://api.cometapi.com/v1。將你的 CometAPI key 貼到 openai key 欄位中。
含有 CometAPI base URL 與 API key 的 avante.nvim 設定檔
3

重新載入並測試

重新載入 Neovim 並觸發 avante.nvim。若成功收到回應,即表示設定運作正常。