diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-03 22:18:08 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-03 22:18:08 +0100 |
| commit | 7da48a934c8dc2c6e9165faedef7abe6bb22ec22 (patch) | |
| tree | d5262d909189dad77b829f84a3cec58ee2686fde | |
| parent | 4b549017d2274d62f532c3ad00b7706f78fac824 (diff) | |
| download | vim-ai-7da48a934c8dc2c6e9165faedef7abe6bb22ec22.tar.gz | |
docu new options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | autoload/vim_ai_config.vim | 3 | ||||
| -rw-r--r-- | doc/vim-ai.txt | 6 | ||||
| -rw-r--r-- | roles-example.ini | 12 |
4 files changed, 24 insertions, 1 deletions
@@ -275,6 +275,7 @@ let g:vim_ai_complete = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -298,6 +299,7 @@ let g:vim_ai_edit = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -329,8 +331,10 @@ let g:vim_ai_chat = { \ "model": "gpt-4o", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "max_tokens": 0, +\ "max_completion_tokens": 0, \ "temperature": 1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "", \ "initial_prompt": s:initial_chat_prompt, diff --git a/autoload/vim_ai_config.vim b/autoload/vim_ai_config.vim index 6442973..a9aeccf 100644 --- a/autoload/vim_ai_config.vim +++ b/autoload/vim_ai_config.vim @@ -8,6 +8,7 @@ let g:vim_ai_complete_default = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -23,6 +24,7 @@ let g:vim_ai_edit_default = { \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -45,6 +47,7 @@ let g:vim_ai_chat_default = { \ "max_completion_tokens": 0, \ "temperature": 1, \ "request_timeout": 20, +\ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "", \ "initial_prompt": s:initial_chat_prompt, diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index fd30cf7..b5674e9 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -29,6 +29,7 @@ Options: > \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, + \ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -55,6 +56,7 @@ Options: > \ "max_tokens": 1000, \ "temperature": 0.1, \ "request_timeout": 20, + \ "stream": 1, \ "enable_auth": 1, \ "selection_boundary": "#####", \ }, @@ -84,11 +86,13 @@ Options: > \ "options": { \ "model": "gpt-4o", \ "max_tokens": 0, + \ "max_completion_tokens": 0, \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "temperature": 1, \ "request_timeout": 20, + \ "stream": 1, \ "enable_auth": 1, - \ "selection_boundary": "#####", + \ "selection_boundary": "", \ "initial_prompt": s:initial_chat_prompt, \ }, \ "ui": { diff --git a/roles-example.ini b/roles-example.ini index 90d32bc..dde5fe0 100644 --- a/roles-example.ini +++ b/roles-example.ini @@ -20,3 +20,15 @@ temperature = 0.4 model = gpt-4 [refactor.options-complete] + +[o1-mini] +[o1-mini.options-chat] +stream = 0 +model = o1-mini +max_tokens = 0 +max_completion_tokens = 25000 +temperature = 1 +initial_prompt = + >>> user + You are a general assistant. + If you attach a code block add syntax type after ``` to enable syntax highlighting. |