跳转到主要内容

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 endpoint 设置为 https://api.cometapi.com/v1/chat/completions,并将你的 CometAPI key 粘贴为 API key 的值。
gpt_academic config.py — API URL 和 key 字段
3

重启并测试

重启 gpt_academic 并尝试一个简单任务。成功返回响应即表示 CometAPI 已连接。