summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-21 18:47:49 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-03-21 18:47:49 +0100
commit10055ff30501767b8749b72f9059e058da32f932 (patch)
tree2b6a251dae49fade02857a23bc7ecda02a24de6e /doc
parent8125570fc4ca94b085857eadc563eafc2c0564a5 (diff)
downloadvim-ai-10055ff30501767b8749b72f9059e058da32f932.tar.gz
openai configuration docu
Diffstat (limited to 'doc')
-rw-r--r--doc/tags1
-rw-r--r--doc/vim-ai.txt29
2 files changed, 29 insertions, 1 deletions
diff --git a/doc/tags b/doc/tags
index 9a56766..20ddc90 100644
--- a/doc/tags
+++ b/doc/tags
@@ -1,4 +1,5 @@
:AI vim-ai.txt /*:AI*
+:AIChat vim-ai.txt /*:AIChat*
:AIEdit vim-ai.txt /*:AIEdit*
vim-ai vim-ai.txt /*vim-ai*
vim-ai-about vim-ai.txt /*vim-ai-about*
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt
index 3bea986..a2ca093 100644
--- a/doc/vim-ai.txt
+++ b/doc/vim-ai.txt
@@ -20,19 +20,46 @@ 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
+
*:AIEdit*
(selection)? :AIEdit edit the current line or the selection
(selection)? :AIEdit {instruction} edit the current line or the selection using
the instruction
- ### :AICh*a*
+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
+
+ *:AIChat*
:AIChat continue or start a new conversation.
(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
+
ABOUT *vim-ai-about*
Contributions are welcome on GitHub: