> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Continue

> 在 Continue 的 config.yaml 中用 provider: openai 和 apiBase 接入 DreamTo。

[Continue](https://docs.continue.dev) 是 VS Code 和 JetBrains 上的开源 AI 编程插件，模型在 `config.yaml` 中配置。DreamTo 可以作为 OpenAI 兼容服务接入。

## 前提条件

* 已安装 Continue 插件。
* 已在 [DreamTo 控制台](https://www.dreamto.ai/console) 的 **API 密钥** 页面创建 API Key。

## 配置步骤

**1. 打开 config.yaml**

在 Continue 面板中打开配置（通常位于 `~/.continue/config.yaml`，Windows 为 `%USERPROFILE%\.continue\config.yaml`）。

**2. 添加模型**

```yaml ~/.continue/config.yaml theme={null}
name: My Config
version: 1.0.0
schema: v1
models:
  - name: DeepSeek V4.1 Flash (DreamTo)
    provider: openai
    model: deepseek-v4.1-flash-1017
    apiBase: https://api.dreamto.ai/v1
    apiKey: sk-xxxx
    roles:
      - chat
      - edit
      - apply
  - name: GPT-6.1 Sol (DreamTo)
    provider: openai
    model: gpt-6.2-sol
    apiBase: https://api.dreamto.ai/v1
    apiKey: sk-xxxx
```

* `provider: openai` 表示使用 OpenAI 兼容协议，`apiBase` 必须带 `/v1`。
* `model` 填[模型广场](https://www.dreamto.ai/models)中的模型 ID。
* 不想把 Key 写在文件里时，可以使用 Continue 的 secrets 功能（如 `apiKey: ${{ secrets.DREAMTO_API_KEY }}`）。

**3. 验证**

保存后在 Continue 对话框的模型下拉中选择刚添加的模型，发送一条消息测试。

## 注意事项

* 对 GPT 推理类模型，Continue 默认可能改用 OpenAI 的 `/responses` 接口。DreamTo 同样支持 Responses；如果你希望统一走 Chat Completions，可以在该模型上设置 `useResponsesApi: false`。
* 保持 `useLegacyCompletionsEndpoint` 为默认（关闭），让 Continue 使用 `/chat/completions` 接口。

## 常见问题

> [accordion] 401
>
> 检查 `apiKey` 是否正确，若使用 secrets，确认变量名一致。

> [accordion] 404 / 模型不存在
>
> `apiBase` 写成 `https://api.dreamto.ai/v1`，不要带 `/chat/completions`；`model` 与模型广场完全一致。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.