Continue
Continue 是开源的 AI 代码助手插件,支持 VS Code 和 JetBrains 系列 IDE。
安装
bash
code --install-extension Continue.continuetext
Settings → Plugins → Marketplace → 搜索 Continue → Install配置
编辑 ~/.continue/config.yaml。文件开头的 name、version、schema 三项是必填的,已有配置文件时只需要把 models 下的条目加进去:
yaml
name: HiHAi
version: 1.0.0
schema: v1
models:
- name: DeepSeek Flash (HiHAi)
provider: openai
model: deepseek-flash
apiBase: https://gateway.hihapi.com/v1
apiKey: 你的令牌密钥
roles:
- chat
- edit
- apply
- name: Qwen Flash (HiHAi)
provider: openai
model: qwen3.8-flash
apiBase: https://gateway.hihapi.com/v1
apiKey: 你的令牌密钥
roles:
- chat
- edit
- applymodel 填 HiHAi 的模型 ID,name 是显示在 IDE 里的名称,可以自己取。保存后 Continue 会自动重新加载配置。
验证
按 Cmd + L(macOS)或 Ctrl + L(Windows、Linux)打开 Continue 面板,选择刚添加的模型并发送一条消息。
常见问题
模型列表里没有出现
检查 YAML 的缩进是否正确,models 下每一项都以 - 开头。
返回 401 或 404
确认 apiKey 是 HiHAi 的令牌密钥,apiBase 以 /v1 结尾。