0
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?

gen.nvimに日本語で回答してもらう

0
Posted at

OllamaのSystem Prompt側で設定する

モデルはqwen2.5-coder:14bを使用しています。
gen.nvimにカスタムプロンプトを追加する方法もありますが、こちらの方が楽でした。

  1. Modelfileを作成
echo "FROM qwen2.5-coder:14b
SYSTEM You are a helpful assistant. Always respond in Japanese." > Modelfile-ja
  1. 新しいモデルとして登録
ollama create qwen2.5-ja -f Modelfile-ja
  1. gen.nvimの設定を書き換える
    gen-nvim.luamodelの部分を"qwen2.5-ja"に変更
0
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
0
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?