From f6893360225a180c2c62c08861589b655d7b159c Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Tue, 21 Mar 2023 22:17:51 +0100 Subject: reverting config options --- README.md | 27 --------------------------- doc/vim-ai.txt | 18 ------------------ 2 files changed, 45 deletions(-) diff --git a/README.md b/README.md index 3a8b2a3..a2cff90 100644 --- a/README.md +++ b/README.md @@ -87,33 +87,6 @@ nnoremap a :AI xnoremap a :AI ``` -### 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. diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index a2ca093..9b7f7f7 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -20,12 +20,6 @@ https://github.com/madox2/vim-ai (selection) :AI complete the selection (selection) :AI {instruction} complete the selection using the instruction -Options: > - 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 - Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/completions @@ -35,12 +29,6 @@ https://platform.openai.com/docs/api-reference/completions (selection)? :AIEdit {instruction} edit the current line or the selection using the instruction -Options: > - 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 - Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/completions @@ -51,12 +39,6 @@ https://platform.openai.com/docs/api-reference/completions (selection)? :AIChat {instruction}? start a new conversation given the selection, the instruction or both -Options: > - 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 - Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/chat -- cgit v1.2.3