diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-20 19:36:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-20 19:36:08 +0200 |
| commit | 940fd18db7dec5e00abff48b84e0711cd513996d (patch) | |
| tree | cafc591f65bc3ba7f9092b56e9ad1758188f5222 /README.md | |
| parent | cdba3579d66956d356c424945a346a0f044facea (diff) | |
| parent | e4c3dad037a1950de5eee153c45c2eddfe0f8f7a (diff) | |
| download | vim-ai-940fd18db7dec5e00abff48b84e0711cd513996d.tar.gz | |
Merge pull request #22 from madox2/empty-response-elimination
Empty response elimination, closes #20
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -186,6 +186,8 @@ Below are listed all available configuration options, along with their default v ```vim " :AI " - options: openai config (see https://platform.openai.com/docs/api-reference/completions) +" - options.request_timout: request timeout in seconds +" - options.selection_boundary: seleciton prompt wrapper (eliminates empty responses, see #20) " - engine: complete | chat - see how to configure chat engine in the section below let g:vim_ai_complete = { \ "engine": "complete", @@ -194,11 +196,14 @@ let g:vim_ai_complete = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "selection_boundary": "#####", \ }, \} " :AIEdit " - options: openai config (see https://platform.openai.com/docs/api-reference/completions) +" - options.request_timout: request timeout in seconds +" - options.selection_boundary: seleciton prompt wrapper " - engine: complete | chat - see how to configure chat engine in the section below let g:vim_ai_edit = { \ "engine": "complete", @@ -207,6 +212,7 @@ let g:vim_ai_edit = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "selection_boundary": "#####", \ }, \} @@ -221,6 +227,8 @@ END " :AIChat " - options: openai config (see https://platform.openai.com/docs/api-reference/chat) " - options.initial_prompt: prompt prepended to every chat request +" - options.request_timout: request timeout in seconds +" - options.selection_boundary: seleciton prompt wrapper " - ui.populate_options: put [chat-options] to the chat header " - ui.open_chat_command: customize how to open chat window " - ui.scratch_buffer_keep_open: re-use scratch buffer within the vim session @@ -230,6 +238,7 @@ let g:vim_ai_chat = { \ "max_tokens": 1000, \ "temperature": 1, \ "request_timeout": 20, +\ "selection_boundary": "", \ "initial_prompt": s:initial_chat_prompt, \ }, \ "ui": { @@ -271,6 +280,7 @@ let chat_engine_config = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "selection_boundary": "", \ "initial_prompt": initial_prompt, \ }, \} |