mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
llm.vim : stop generation at multiple linebreaks, bind to <F2> (#2879)
This commit is contained in:
parent
8341a25957
commit
ad9ddcff6e
@ -8,7 +8,7 @@ function! Llm()
|
|||||||
let buffer_content = join(getline(1, '$'), "\n")
|
let buffer_content = join(getline(1, '$'), "\n")
|
||||||
|
|
||||||
" Create the JSON payload
|
" Create the JSON payload
|
||||||
let json_payload = {"temp":0.72,"top_k":100,"top_p":0.73,"repeat_penalty":1.100000023841858,"n_predict":10,"stream": v:false}
|
let json_payload = {"temp":0.72,"top_k":100,"top_p":0.73,"repeat_penalty":1.100000023841858,"n_predict":256,"stop": ["\n\n\n"],"stream": v:false}
|
||||||
let json_payload.prompt = buffer_content
|
let json_payload.prompt = buffer_content
|
||||||
|
|
||||||
" Define the curl command
|
" Define the curl command
|
||||||
@ -25,3 +25,4 @@ function! Llm()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command! Llm call Llm()
|
command! Llm call Llm()
|
||||||
|
noremap <F2> :Llm<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user