跳轉到主要內容

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.

gpt_academic 是一個開源工具,使用大型語言模型來強化學術寫作與程式碼審查。將它連接到 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

編輯 config.py

開啟 gpt_academic/config.py。將 API 端點設為 https://api.cometapi.com/v1/chat/completions,並將您的 CometAPI key 貼上為 API key 值。
gpt_academic config.py — API URL 與 key 欄位
3

重新啟動並測試

重新啟動 gpt_academic 並嘗試一個簡單任務。成功回應即代表 CometAPI 已連接。