2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

local LLMとcontinueを使ってインライン補完

2
Last updated at Posted at 2025-08-20

手順

vscode拡張機能のcontinueをインストール
~/.continue/config.yamlが作成されているはずなので以下を設定

~/.continue/config.yaml

name: Local Assistant
version: 1.0.0
schema: v1

models:
  # Autocomplete
  - name: qwen3-coder:30b-cline-lite (Autocomplete)
    provider: ollama
    apiBase: http://{モデルのURL}:11434 # 
    model: qwen3-coder:30b-cline-lite # 好みで変更
    roles: [autocomplete]
    defaultCompletionOptions:
      temperature: 0.1
      maxTokens: 160
      stop: # 無くても止まる。ないほうがいいかもしれない
        - "\n\n```"
        - "</code>"
        - "\n\n/**"
    autocompleteOptions:
      debounceDelay: 140         # タイプしてから補完要求までの待ち
      maxPromptTokens: 1536      # 前後文脈の合計上限
      onlyMyCode: true           # リポジトリ内のコードに限定
      useRecentlyEdited: true    # 最近編集したファイルをコンテキストに含める
      useRecentlyOpened: true    # 最近開いたファイルをコンテキストに含める
      maxSuffixPercentage: 0.15  # 後ろ文脈の比率
      prefixPercentage: 0.85     # プレフィックスに割り当てられた入力の割合

context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase

modelsを複数指定した場合、vscodeウインドウ右下の[✓continue]をクリックすると瞬時に変更できるのでとても便利です。

各プロパティに関してはcontinue公式ドキュメントを参照してください。

qwen3-coder:30b-cline-liteについては以下を参照ください。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?