跳至主要內容
所有用戶端
VS Code & JetBrains Open-Source IDE Plugin1M Context · ZDR

Continue

Open-source AI assistant for VS Code and IntelliJ/JetBrains configured via ~/.continue/config.yaml.

基礎網址
https://api.bf16.ai/v1
協定
openai-completions

適用對象
VS Code, PyCharm, GoLand, and IntelliJ developers who want an open-source sidebar Agent, Edit, and Chat workflow backed by bf16.ai.

架構原理與接入優勢

Continue extension in VS Code and JetBrains (~/.continue/config.yaml) connected to https://api.bf16.ai/v1
Continue maps chat, edit, and apply roles in ~/.continue/config.yaml directly to https://api.bf16.ai/v1 across both VS Code and JetBrains IDEs.

Continue (`continue.dev`) is the leading Apache-2.0 AI coding assistant supporting both **VS Code** and **all JetBrains IDEs** (IntelliJ IDEA, PyCharm, GoLand, RustRover, WebStorm, CLion).

Continue’s modern `~/.continue/config.yaml` lets you assign explicit `roles: [chat, edit, apply]` and `capabilities: [tool_use, image_input]` per model — pairing `zai-org/glm-5.3-uncensored` for Agent/Chat with `deepseek/deepseek-v4.1-flash-uncensored` for instant `Cmd+I` Edit and Apply.

指令預設顯示 $BF16_API_KEY。登入並建立金鑰後會自動填入你的真實金鑰。

一鍵快速配置

One-Command `~/.continue/config.yaml` Writer

Backs up ~/.continue/config.yaml if present, writes a clean Continue v1 YAML config with GLM-5.3, DeepSeek V4.1 Flash (Vision + Apply), and Kimi K3.1 Pro, and verifies api.bf16.ai.

export BF16_API_KEY="sk-bf16-v1-..."
mkdir -p ~/.continue && [ -f ~/.continue/config.yaml ] && cp ~/.continue/config.yaml ~/.continue/config.yaml.bak
umask 077 && cat <<EOF > ~/.continue/config.yaml
name: bf16-uncensored
version: 1.0.0
schema: v1
models:
  - name: GLM-5.3 Flagship (bf16)
    provider: openai
    model: zai-org/glm-5.3-uncensored
    apiBase: https://api.bf16.ai/v1
    apiKey: $BF16_API_KEY
    roles: [chat, edit]
    capabilities: [tool_use]
    defaultCompletionOptions:
      contextLength: 1048576
      maxTokens: 65536
  - name: DeepSeek V4.1 Flash Vision (bf16)
    provider: openai
    model: deepseek/deepseek-v4.1-flash-uncensored
    apiBase: https://api.bf16.ai/v1
    apiKey: $BF16_API_KEY
    roles: [chat, edit, apply]
    capabilities: [tool_use, image_input]
    defaultCompletionOptions:
      contextLength: 1048576
      maxTokens: 32768
  - name: Kimi K3.1 Pro 2.8T Vision (bf16)
    provider: openai
    model: moonshotai/kimi-k3.1-pro-uncensored
    apiBase: https://api.bf16.ai/v1
    apiKey: $BF16_API_KEY
    roles: [chat, edit]
    capabilities: [tool_use, image_input]
    defaultCompletionOptions:
      contextLength: 1048576
      maxTokens: 65536
EOF
curl -fsS "https://api.bf16.ai/v1/models" -H "Authorization: Bearer $BF16_API_KEY" >/dev/null && echo "Saved ~/.continue/config.yaml"
  1. 1

    Save ~/.continue/config.yaml

    Open Continue → click the model dropdown → click the gear icon to open ~/.continue/config.yaml (Windows: %USERPROFILE%\.continue\config.yaml), and paste the YAML below.

    ~/.continue/config.yaml
    name: bf16-uncensored
    version: 1.0.0
    schema: v1
    models:
      - name: GLM-5.3 Flagship (bf16)
        provider: openai
        model: zai-org/glm-5.3-uncensored
        apiBase: https://api.bf16.ai/v1
        apiKey: $BF16_API_KEY
        roles: [chat, edit]
        capabilities: [tool_use]
        defaultCompletionOptions:
          contextLength: 1048576
          maxTokens: 65536
      - name: DeepSeek V4.1 Flash Vision (bf16)
        provider: openai
        model: deepseek/deepseek-v4.1-flash-uncensored
        apiBase: https://api.bf16.ai/v1
        apiKey: $BF16_API_KEY
        roles: [chat, edit, apply]
        capabilities: [tool_use, image_input]
        defaultCompletionOptions:
          contextLength: 1048576
          maxTokens: 32768
  2. 2

    Select GLM-5.3 or DeepSeek V4.1 Flash in Continue Sidebar

    Switch Continue mode to Agent or Chat, pick GLM-5.3 Flagship (bf16), and set DeepSeek V4.1 Flash Vision (bf16) as your Apply model under Model Roles.

Continue — ~/.continue/config.yaml
介面與設定檔欄位對照
~/.continue/config.yaml · provider: openai

關鍵參數核對清單

provider
openai
apiBase
https://api.bf16.ai/v1
apiKey
sk-bf16-v1-••••••••••••
Agent / Chat Model
zai-org/glm-5.3-uncensored (contextLength: 1048576)
Fast Edit / Apply & Vision Model
deepseek/deepseek-v4.1-flash-uncensored
Continue reloads ~/.continue/config.yaml automatically as soon as the file is saved.

推薦模型分層配置

架構規劃使用旗艦模型,高頻子任務與螢幕截圖使用 Flash 模型以節省開銷。

工作流角色模型 ID選型說明USD / 1M Tokens
Agent & Chat (`roles: [chat, edit]`)zai-org/glm-5.3-uncensoredHigh tool-use reliability in Continue Agent mode across VS Code and JetBrains.$1.35 in / $0.25 cached / $4.20 out
Fast Apply & Multimodal (`roles: [chat, edit, apply]`)deepseek/deepseek-v4.1-flash-uncensoredApplies code blocks rapidly into files and accepts pasted UI screenshots.$0.26 in / $0.045 cached / $1.00 out

如何確認設定成功

  • Both models appear immediately in Continue’s model selector with Tool Use icons enabled.
  • Agent tool calls stream cleanly and log in bf16.ai/dashboard/logs.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • Do not assign LLM chat models to the `autocomplete` role unless you tolerate chat-model latency on every keystroke — keep `roles: [chat, edit, apply]`.

常見錯誤

現象
Agent mode says the selected model does not support tools.
原因
`capabilities: [tool_use]` was omitted on the custom `provider: openai` entry in config.yaml.
解法
Include `capabilities: [tool_use]` (and `image_input` on Flash / Kimi) as shown above.