fixed ring update, removed blank line
This commit is contained in:
parent
90e3bdc942
commit
2dcbb00e06
1 changed files with 9 additions and 5 deletions
|
@ -347,10 +347,15 @@ function! s:ring_update()
|
||||||
\ 't_max_predict_ms': 1
|
\ 't_max_predict_ms': 1
|
||||||
\ })
|
\ })
|
||||||
|
|
||||||
let l:curl_command = printf(
|
let l:curl_command = [
|
||||||
\ "curl --silent --no-buffer --request POST --url %s --header \"Content-Type: application/json\" --data %s",
|
\ "curl",
|
||||||
\ g:llama_config.endpoint, shellescape(l:request)
|
\ "--silent",
|
||||||
\ )
|
\ "--no-buffer",
|
||||||
|
\ "--request", "POST",
|
||||||
|
\ "--url", g:llama_config.endpoint,
|
||||||
|
\ "--header", "Content-Type: application/json",
|
||||||
|
\ "--data", l:request
|
||||||
|
\ ]
|
||||||
|
|
||||||
" no callbacks because we don't need to process the response
|
" no callbacks because we don't need to process the response
|
||||||
if s:nvim_ghost_text
|
if s:nvim_ghost_text
|
||||||
|
@ -462,7 +467,6 @@ function! llama#fim(is_auto) abort
|
||||||
\ "--data", l:request
|
\ "--data", l:request
|
||||||
\ ]
|
\ ]
|
||||||
|
|
||||||
|
|
||||||
if s:current_job != v:null
|
if s:current_job != v:null
|
||||||
if s:nvim_ghost_text
|
if s:nvim_ghost_text
|
||||||
call jobstop(s:current_job)
|
call jobstop(s:current_job)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue