diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-22 22:14:25 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-22 22:14:25 +0100 |
| commit | 08036fb76c437b705d916708d903c7c6c2eef0ba (patch) | |
| tree | f8d1c4f3f652c13c265d2f75e104f3b3907c4551 /doc/vim-ai.txt | |
| parent | 9b707d99b106c6535e476f00095053b470428bcc (diff) | |
| download | vim-ai-08036fb76c437b705d916708d903c7c6c2eef0ba.tar.gz | |
completion configuration
Diffstat (limited to '')
| -rw-r--r-- | doc/vim-ai.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index 9b7f7f7..5657756 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -20,6 +20,16 @@ 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", + \ "max_tokens": 1000, + \ "temperature": 0.1, + \ "request_timeout": 10, + \ }, + \} + Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/completions @@ -29,6 +39,16 @@ 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", + \ "max_tokens": 1000, + \ "temperature": 0.1, + \ "request_timeout": 10, + \ }, + \} + Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/completions @@ -39,9 +59,31 @@ 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", + \ "max_tokens": 1000, + \ "temperature": 1, + \ "request_timeout": 10, + \ }, + \} + Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/chat +CONFIGURATION *vim-ai-config* + +To customize the default configuration, initialize the config variable with +a selection of options: > + + let g:vim_ai_chat = { + \ "options": { + \ "model": "gpt-4", + \ "temperature": 0.2, + \ }, + \} + ABOUT *vim-ai-about* Contributions are welcome on GitHub: |