跳转到主要内容

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.

Continue 是一个开源的 VS Code 扩展,用于提供 AI 驱动的编程辅助。它内置了一方 CometAPI provider,无需手动配置 URL。

前置条件

  • 已在 VS Code 中安装 Continue
  • 拥有一个带有可用 API key 的 CometAPI 账户

设置

1

在 VS Code 中安装 Continue

在 VS Code 的扩展面板中搜索 Continue 并安装。
显示 Continue 扩展的 VS Code 扩展面板
2

获取你的 CometAPI API key

登录 CometAPI 控制台。点击 Add API Key 并复制你的 key。
CometAPI 控制台 — Add API Key
CometAPI API key 和 base URL
3

将 CometAPI 添加为 provider

打开 Continue SettingsModels+。在 provider 列表中搜索 cometapi 并选择它。粘贴你的 API key,并选择你想使用的模型。
Continue 设置 — 已选择 cometapi 的 provider 搜索
Continue 中的 CometAPI provider 配置
Continue 中使用 CometAPI provider 的模型选择
4

测试连接

打开一个文件,并通过 Continue 发送一个测试 Prompt。成功返回响应即表示集成工作正常。
显示来自 CometAPI 成功响应的 Continue 聊天界面
如果 provider 列表中没有显示 CometAPI,请将 Continue 切换到 Preview 版本,然后重新打开该扩展。
显示 Preview 版本切换开关的 Continue 扩展面板