Skip to Content

Continue 接入

Continue  是开源 AI 编程助手,VS Code + JetBrains 全家桶通用。配置文件 ~/.continue/config.json(或新版的 config.yaml)允许自定义任意 provider。

1. 准备 API Key

登录 app.ttttt.ai API 密钥 → 创建密钥(命名 continue)。

2. 配置 ~/.continue/config.yaml(v1.0+)

name: My Continue Config version: 0.0.1 schema: v1 models: - name: gpt-5.5 (ttttt.ai) provider: openai model: gpt-5.5 apiBase: https://api.ttttt.ai/v1 apiKey: owo-... roles: - chat - edit - apply - name: gpt-5.4 (cheap) provider: openai model: gpt-5.4 apiBase: https://api.ttttt.ai/v1 apiKey: owo-... roles: - autocomplete

3. 旧版 ~/.continue/config.json

{ "models": [ { "title": "gpt-5.5 (ttttt.ai)", "provider": "openai", "model": "gpt-5.5", "apiBase": "https://api.ttttt.ai/v1", "apiKey": "owo-..." } ], "tabAutocompleteModel": { "title": "gpt-5.4 autocomplete", "provider": "openai", "model": "gpt-5.4", "apiBase": "https://api.ttttt.ai/v1", "apiKey": "owo-..." } }

保存后 Continue 会热重载配置;在 Chat 面板的模型选择器里能看到 gpt-5.5 (ttttt.ai)

4. 验证

Cmd/Ctrl + L # VS Code 打开 Continue Chat > 写一段 quicksort

用量页  按客户端筛选 Continue 即可看到记录。

5. 角色(Roles)说明

Continue v1+ 的 roles 字段决定模型用在哪些场景:

Role用途
chatChat 面板对话
edit在编辑器里 inline edit
apply把 chat 输出 apply 到代码
autocompleteTab 补全(需要专门优化 latency 的小模型)
embed索引代码用的 embedding 模型
rerank检索结果重排

小贴士:autocomplete 对延迟极敏感,建议为它单独配最便宜最快的模型,避免让 gpt-5.5 这种”贵 + 慢”的模型去做补全。

6. 团队预设(Team Presets)

Continue 支持把配置文件 commit 到仓库共享:

your-repo/ ├── .continue/ │ └── config.yaml # 团队共用配置(不含密钥)

不要apiKey 写进 commit 的文件里。推荐做法:

models: - name: gpt-5.5 provider: openai apiKey: ${{ secrets.TTTTT_API_KEY }} # 引用环境变量 apiBase: https://api.ttttt.ai/v1 model: gpt-5.5

让每个工程师在本地 ~/.continue/.env 里设 TTTTT_API_KEY=owo-...

7. 常见问题

Q: 配置改了不生效? A: VS Code 命令面板 Continue: Reload Config,或重启编辑器。

Q: 切换 provider 后 Chat 历史会丢吗? A: 不会。Chat 历史本地存储,与 provider 无关。

Q: Embeddings 模型该选哪个? A: 测试期 ttttt.ai 暂未公开 embedding 模型;Continue 的代码索引用的 embedding 可以暂时留默认,或指向其他自托管 embedding 服务。

Last updated on