llama.vim : minor [no ci]

This commit is contained in:
Georgi Gerganov 2024-10-18 22:45:23 +03:00
parent fe78c39399
commit b8efb0725d
No known key found for this signature in database
GPG key ID: BF970631944C16B7

View file

@ -144,6 +144,7 @@ function! llama#init()
"autocmd CursorHoldI * call llama#fim(v:true, v:true)
endif
" gather chunks upon yanking
autocmd TextYankPost * if v:event.operator ==# 'y' | call s:pick_chunk(v:event.regcontents, v:false, v:true) | endif
" gather chunks upon entering/leaving a buffer
@ -310,7 +311,6 @@ function! s:ring_update()
\ 'input_extra': l:extra_context,
\ 'prompt': "",
\ 'n_predict': 1,
\ 'penalty_last_n': 0,
\ 'temperature': 0.0,
\ 'stream': v:false,
\ 'samplers': ["temperature"],
@ -410,7 +410,6 @@ function! llama#fim(is_auto, on_hold) abort
\ 'prompt': l:prompt,
\ 'n_predict': g:llama_config.n_predict,
\ 'n_indent': l:indent,
\ 'penalty_last_n': 0,
\ 'top_k': 40,
\ 'top_p': 0.99,
\ 'stream': v:false,