From bc0b5752b0a4856d5649f913853994277e921339 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Fri, 23 May 2025 12:18:14 +0800 Subject: [PATCH] =?UTF-8?q?ai=20=E8=AA=BF=E6=95=B4=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exact_plugins/exact_components/ai.lua.tmpl | 3 ++- dot_continue/config.yaml.tmpl | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/ai.lua.tmpl b/dot_config/nvim/exact_lua/exact_plugins/exact_components/ai.lua.tmpl index 227c89d..7f413ee 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/ai.lua.tmpl +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/ai.lua.tmpl @@ -121,7 +121,8 @@ return { -- model = "qwen2.5-coder:1.5b", -- 實測發現不相容,先關掉 -- model = "codellama:7b", -- model = "starcoder2:3b", - model = "starcoder:1b", + -- model = "starcoder:1b", + model = "stable-code:3b", url = {{ .ollamaUrl | quote }}, -- llm-ls uses "/api/generate" {{ if .ollamaKey }}api_token = {{ .ollamaKey | quote }},{{ end }} -- -- cf https://github.com/ollama/ollama/blob/main/docs/api.md#parametersu can set any field:value pair here it will be passed as is to the backend diff --git a/dot_continue/config.yaml.tmpl b/dot_continue/config.yaml.tmpl index cac2490..def8a20 100644 --- a/dot_continue/config.yaml.tmpl +++ b/dot_continue/config.yaml.tmpl @@ -20,13 +20,20 @@ models: - chat - edit - apply - - name: starcoder:1b + - name: stable-code:3b provider: ollama - model: starcoder:1b + model: stable-code:3b apiBase: {{ .ollamaUrl }} apiKey: {{ .ollamaKey }} roles: - autocomplete + # - name: starcoder:1b + # provider: ollama + # model: starcoder:1b + # apiBase: {{ .ollamaUrl }} + # apiKey: {{ .ollamaKey }} + # roles: + # - autocomplete # - name: qwen2.5-coder:1.5b # provider: ollama # model: qwen2.5-coder:1.5b