Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed ring update, removed blank line
  • Loading branch information
m18coppola committed Oct 22, 2024
commit 2dcbb00e0664a886af495b1edfec19f2e0263284
14 changes: 9 additions & 5 deletions examples/llama.vim
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,15 @@ function! s:ring_update()
\ 't_max_predict_ms': 1
\ })

let l:curl_command = printf(
\ "curl --silent --no-buffer --request POST --url %s --header \"Content-Type: application/json\" --data %s",
\ g:llama_config.endpoint, shellescape(l:request)
\ )
let l:curl_command = [
\ "curl",
\ "--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
if s:nvim_ghost_text
Expand Down Expand Up @@ -462,7 +467,6 @@ function! llama#fim(is_auto) abort
\ "--data", l:request
\ ]


if s:current_job != v:null
if s:nvim_ghost_text
call jobstop(s:current_job)
Expand Down
Loading