Skip to content

安裝

在您的 IDE 中安裝 Cline

搭配 Ollama 使用

  1. 開啟 Cline 設定 > API Configuration,並將 API Provider 設定為 Ollama
  2. Model 底下選擇一個模型,或直接輸入一個模型(例如 qwen3
  3. Context Window 底下將上下文視窗更新為至少 32K tokens

注意

程式碼工具需要較大的上下文視窗。建議使用至少 32K tokens 的上下文視窗。如需更多資訊,請參閱 Context length

Cline settings configuration showing API Provider set to Ollama

連線至 ollama.com

  1. 從 ollama.com 建立一個 API key
  2. 點擊 Use custom base URL 並將其設定為 https://ollama.com
  3. 輸入您的 Ollama API Key
  4. 從列表中選擇一個模型

推薦模型

  • qwen3-coder:480b
  • deepseek-v3.1:671b