跳轉到主要內容

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.

gptme 是一個以終端機為基礎的 AI 助手。編輯 config.toml 檔案以將其設定為使用 CometAPI。

先決條件

  • 已安裝 gptme
  • 擁有一個啟用中 API key 的 CometAPI 帳戶

設定

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

編輯 config.toml

開啟 ~/.config/gptme/config.toml(如果不存在則建立)。將 url 設為 https://api.cometapi.com/v1,並將你的 CometAPI key 貼上為 API key。
gptme config.toml — URL 與 API key 欄位
3

測試連線

在終端機中執行 gptme 並送出測試 Prompt。若成功收到回應,即表示整合運作正常。