跳转到主要内容

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。成功返回响应即表示集成工作正常。