Compare commits

..

2 Commits

Author SHA1 Message Date
bc0b5752b0
ai 調整模型 2025-05-23 12:18:14 +08:00
b64c32147a
fix zsh: ollama 2025-05-23 12:18:03 +08:00
3 changed files with 13 additions and 4 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

View File

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