326
326
" - options: openai config (see https://platform.openai.com/docs/api-reference/completions)
327
327
" - options.initial_prompt: prompt prepended to every chat request (list of lines or string)
328
328
" - options.request_timeout: request timeout in seconds
329
- " - options.enable_auth: enable authorization using openai key
329
+ " - options.auth_type: API authentication method (bearer, api- key, none)
330
330
" - options.token_file_path: override global token configuration
331
331
" - options.selection_boundary: selection prompt wrapper (eliminates empty responses, see #20)
332
332
" - ui.paste_mode: use paste mode (see more info in the Notes below)
@@ -341,7 +341,7 @@ let g:vim_ai_complete = {
341
341
\ "temperature": 0.1,
342
342
\ "request_timeout": 20,
343
343
\ "stream": 1,
344
- \ "enable_auth ": 1 ,
344
+ \ "auth_type ": "bearer" ,
345
345
\ "token_file_path": "",
346
346
\ "selection_boundary": "#####",
347
347
\ "initial_prompt": s:initial_complete_prompt,
@@ -357,7 +357,7 @@ let g:vim_ai_complete = {
357
357
" - options: openai config (see https://platform.openai.com/docs/api-reference/completions)
358
358
" - options.initial_prompt: prompt prepended to every chat request (list of lines or string)
359
359
" - options.request_timeout: request timeout in seconds
360
- " - options.enable_auth: enable authorization using openai key
360
+ " - options.auth_type: API authentication method (bearer, api- key, none)
361
361
" - options.token_file_path: override global token configuration
362
362
" - options.selection_boundary: selection prompt wrapper (eliminates empty responses, see #20)
363
363
" - ui.paste_mode: use paste mode (see more info in the Notes below)
@@ -372,7 +372,7 @@ let g:vim_ai_edit = {
372
372
\ "temperature": 0.1,
373
373
\ "request_timeout": 20,
374
374
\ "stream": 1,
375
- \ "enable_auth ": 1 ,
375
+ \ "auth_type ": "bearer" ,
376
376
\ "token_file_path": "",
377
377
\ "selection_boundary": "#####",
378
378
\ "initial_prompt": s:initial_complete_prompt,
396
396
" - options: openai config (see https://platform.openai.com/docs/api-reference/chat)
397
397
" - options.initial_prompt: prompt prepended to every chat request (list of lines or string)
398
398
" - options.request_timeout: request timeout in seconds
399
- " - options.enable_auth: enable authorization using openai key
399
+ " - options.auth_type: API authentication method (bearer, api- key, none)
400
400
" - options.token_file_path: override global token configuration
401
401
" - options.selection_boundary: selection prompt wrapper (eliminates empty responses, see #20)
402
402
" - ui.open_chat_command: preset (preset_below, preset_tab, preset_right) or a custom command
@@ -415,7 +415,7 @@ let g:vim_ai_chat = {
415
415
\ "temperature": 1,
416
416
\ "request_timeout": 20,
417
417
\ "stream": 1,
418
- \ "enable_auth ": 1 ,
418
+ \ "auth_type ": "bearer" ,
419
419
\ "token_file_path": "",
420
420
\ "selection_boundary": "",
421
421
\ "initial_prompt": s:initial_chat_prompt,
@@ -434,7 +434,7 @@ let g:vim_ai_chat = {
434
434
" - prompt: optional prepended prompt
435
435
" - options: openai config (https://platform.openai.com/docs/api-reference/images/create)
436
436
" - options.request_timeout: request timeout in seconds
437
- " - options.enable_auth: enable authorization using openai key
437
+ " - options.auth_type: API authentication method (bearer, api- key, none)
438
438
" - options.token_file_path: override global token configuration
439
439
" - options.download_dir: path to image download directory, `cwd` if not defined
440
440
let g:vim_ai_image = {
@@ -447,7 +447,7 @@ let g:vim_ai_image = {
447
447
\ "size": "1024x1024",
448
448
\ "style": "vivid",
449
449
\ "request_timeout": 40,
450
- \ "enable_auth ": 1 ,
450
+ \ "auth_type ": "bearer" ,
451
451
\ "token_file_path": "",
452
452
\ },
453
453
\ "ui": {
@@ -486,7 +486,7 @@ See some cool projects listed in [Custom APIs](https://github.com/madox2/vim-ai/
486
486
let g:vim_ai_chat = {
487
487
\ "options": {
488
488
\ "endpoint_url": "http://localhost:8000/v1/chat/completions",
489
- \ "enable_auth ": 0 ,
489
+ \ "auth_type ": "none" ,
490
490
\ },
491
491
\}
492
492
```
0 commit comments