File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -347,10 +347,15 @@ function! s:ring_update()
347347 \ ' t_max_predict_ms' : 1
348348 \ })
349349
350- let l: curl_command = printf (
351- \ " curl --silent --no-buffer --request POST --url %s --header \" Content-Type: application/json\" --data %s" ,
352- \ g: llama_config .endpoint, shellescape (l: request )
353- \ )
350+ let l: curl_command = [
351+ \ " curl" ,
352+ \ " --silent" ,
353+ \ " --no-buffer" ,
354+ \ " --request" , " POST" ,
355+ \ " --url" , g: llama_config .endpoint,
356+ \ " --header" , " Content-Type: application/json" ,
357+ \ " --data" , l: request
358+ \ ]
354359
355360 " no callbacks because we don't need to process the response
356361 if s: nvim_ghost_text
@@ -462,7 +467,6 @@ function! llama#fim(is_auto) abort
462467 \ " --data" , l: request
463468 \ ]
464469
465-
466470 if s: current_job != v: null
467471 if s: nvim_ghost_text
468472 call jobstop (s: current_job )
You can’t perform that action at this time.
0 commit comments