Compare commits

..

No commits in common. "bc0b5752b0a4856d5649f913853994277e921339" and "a3338ac65160a0b14f5c4b8916198afed957e933" have entirely different histories.

3 changed files with 4 additions and 13 deletions

View File

@ -121,8 +121,7 @@ return {
-- model = "qwen2.5-coder:1.5b", -- 實測發現不相容,先關掉
-- model = "codellama:7b",
-- model = "starcoder2:3b",
-- model = "starcoder:1b",
model = "stable-code:3b",
model = "starcoder:1b",
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,20 +20,13 @@ models:
- chat
- edit
- apply
- name: stable-code:3b
- name: starcoder:1b
provider: ollama
model: stable-code:3b
model: starcoder:1b
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

View File

@ -156,8 +156,7 @@ bindkey '^P' my_paste_from_clipboard # 例如 Ctrl+P
zinit light sunlei/zsh-ssh
# Ollama 自動補齊
zinit light ocodo/ollama_zsh_completion
# zinit snippet https://gist.github.com/obeone/9313811fd61a7cbb843e0001a4434c58/raw/5a6a44efc6a07b6f937dbc596d9d7385b297dda8/_ollama.zsh
zinit snippet https://gist.github.com/obeone/9313811fd61a7cbb843e0001a4434c58/raw/5a6a44efc6a07b6f937dbc596d9d7385b297dda8/_ollama.zsh
# overwrite ls
if command -v colorls &> /dev/null; then