From 437d4e68fd58ca2abb2e8323522f6e4c5fec3198 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Fri, 31 May 2024 09:15:37 +0200 Subject: gpt-4o as default chat model --- README.md | 8 ++++---- autoload/vim_ai_config.vim | 2 +- doc/vim-ai.txt | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 34fdf9d..575e64c 100644 --- a/README.md +++ b/README.md @@ -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, \ }, -- cgit v1.2.3