diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-05 20:47:01 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-05 20:47:01 +0100 |
| commit | 24f0a8b7864511ce8f4a30251c511a3b63e5573e (patch) | |
| tree | 3e6b7efae76d03c5b875911af891a6895b4c2b40 /README.md | |
| parent | 707947a8931e46effbd9120356e7c4ece6ff8628 (diff) | |
| download | vim-ai-24f0a8b7864511ce8f4a30251c511a3b63e5573e.tar.gz | |
o1 preview example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -231,8 +231,11 @@ To customize the default configuration, initialize the config variable with a se ```vim let g:vim_ai_chat = { \ "options": { -\ "model": "gpt-4", -\ "temperature": 0.2, +\ "model": "o1-preview", +\ "stream": 0, +\ "temperature": 1, +\ "max_completion_tokens": 25000, +\ "initial_prompt": "", \ }, \} ``` @@ -240,16 +243,22 @@ let g:vim_ai_chat = { Once the above is set, you can modify options directly during the vim session: ```vim -let g:vim_ai_chat['options']['model'] = 'gpt-4' -let g:vim_ai_chat['options']['temperature'] = 0.2 +let g:vim_ai_chat['options']['model'] = 'o1-preview' +let g:vim_ai_chat['options']['stream'] = 0 +let g:vim_ai_chat['options']['temperature'] = 1 +let g:vim_ai_chat['options']['max_completion_tokens'] = 25000 +let g:vim_ai_chat['options']['initial_prompt'] = '' ``` Or customize the options directly in the chat buffer: ```properties [chat-options] -model=gpt-4 -temperature=0.2 +model=o1-preview +stream=0 +temperature=1 +max_completion_tokens=25000 +initial_prompt= >>> user |