ai 調整模型

This commit is contained in:
Yuan Chiu 2025-05-23 12:18:14 +08:00
parent b64c32147a
commit bc0b5752b0
Signed by: yuan
GPG Key ID: 50FBE4156404B98D
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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