diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-21 22:17:51 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-21 22:17:51 +0100 |
| commit | f6893360225a180c2c62c08861589b655d7b159c (patch) | |
| tree | f2d2d7d4748333fdabf740e2722dd55aedb014cf /README.md | |
| parent | 897f7137db66fcd6bb7ec73abdabd3f358016f2e (diff) | |
| download | vim-ai-f6893360225a180c2c62c08861589b655d7b159c.tar.gz | |
reverting config options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -87,33 +87,6 @@ nnoremap <leader>a :AI<CR> xnoremap <leader>a :AI<CR> ``` -### Completion configuration - -Request to the OpenAI API can be configured for each command. Below are listed available options with default values. - -```vim -" :AI -" - https://platform.openai.com/docs/api-reference/completions -let g:vim_ai_complete.options.model = "text-davinci-003" -let g:vim_ai_complete.options.max_tokens = 1000 -let g:vim_ai_complete.options.temperature = 0.1 -let g:vim_ai_complete.options.request_timeout = 10 - -" :AIEdit -" - https://platform.openai.com/docs/api-reference/completions -let g:vim_ai_edit.options.model = "text-davinci-003" -let g:vim_ai_edit.options.max_tokens = 1000 -let g:vim_ai_edit.options.temperature = 0.1 -let g:vim_ai_edit.options.request_timeout = 10 - -" :AIChat -" - https://platform.openai.com/docs/api-reference/chat -let g:vim_ai_chat.options.model = "gpt-3.5-turbo" -let g:vim_ai_chat.options.max_tokens = 1000 -let g:vim_ai_chat.options.temperature = 1 -let g:vim_ai_chat.options.request_timeout = 10 -``` - ### Custom commands To customize and re-use prompts it is useful to put some context to the language model. You can do it with prepending text to `:AI` command. |