diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2024-05-31 09:15:37 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2024-05-31 09:15:37 +0200 |
| commit | 437d4e68fd58ca2abb2e8323522f6e4c5fec3198 (patch) | |
| tree | 48d9d8ec2fe2f8ac824f00f1f4f02f240b9d3210 | |
| parent | 63e0fe926634a152f56586b63434c4739819a601 (diff) | |
| download | vim-ai-437d4e68fd58ca2abb2e8323522f6e4c5fec3198.tar.gz | |
gpt-4o as default chat model
Diffstat (limited to '')
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | autoload/vim_ai_config.vim | 2 | ||||
| -rw-r--r-- | doc/vim-ai.txt | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -326,7 +326,7 @@ END " - ui.paste_mode: use paste mode (see more info in the Notes below) let g:vim_ai_chat = { \ "options": { -\ "model": "gpt-3.5-turbo", +\ "model": "gpt-4o", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "max_tokens": 0, \ "temperature": 1, @@ -372,7 +372,7 @@ let g:vim_ai_chat = { ### Using chat engine for completion and edits -It is possible to configure chat models, such as `gpt-3.5-turbo`, to be used in `:AI` and `:AIEdit` commands. +It is possible to configure chat models, such as `gpt-4o`, to be used in `:AI` and `:AIEdit` commands. These models are cheaper, but currently less suitable for code editing/completion, as they respond with human-like text and commentary. Depending on the use case, a good initial prompt can help to instruct the chat model to respond in the desired way: @@ -391,7 +391,7 @@ END let chat_engine_config = { \ "engine": "chat", \ "options": { -\ "model": "gpt-3.5-turbo", +\ "model": "gpt-4o", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "max_tokens": 0, \ "temperature": 0.1, @@ -419,7 +419,7 @@ function! GitCommitMessageFn() let l:config = { \ "engine": "chat", \ "options": { - \ "model": "gpt-3.5-turbo", + \ "model": "gpt-4o", \ "initial_prompt": ">>> system\nyou are a code assistant", \ "temperature": 1, \ }, diff --git a/autoload/vim_ai_config.vim b/autoload/vim_ai_config.vim index 0473f8b..ffe327a 100644 --- a/autoload/vim_ai_config.vim +++ b/autoload/vim_ai_config.vim @@ -39,7 +39,7 @@ If you attach a code block add syntax type after ``` to enable syntax highlighti END let g:vim_ai_chat_default = { \ "options": { -\ "model": "gpt-3.5-turbo", +\ "model": "gpt-4o", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "max_tokens": 0, \ "temperature": 1, diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index 21427e3..fd30cf7 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -82,7 +82,7 @@ Options: > let g:vim_ai_chat = { \ "options": { - \ "model": "gpt-3.5-turbo", + \ "model": "gpt-4o", \ "max_tokens": 0, \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "temperature": 1, @@ -211,7 +211,7 @@ To create custom commands, call `AIRun`, `AIEditRun` and `AIChatRun` functions: let l:config = { \ "engine": "chat", \ "options": { - \ "model": "gpt-3.5-turbo", + \ "model": "gpt-4o", \ "initial_prompt": ">>> system\nyou are a code assistant", \ "temperature": 1, \ }, |