diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-05 18:53:43 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-05 18:53:43 +0200 |
| commit | a37328c59c5e42c5286f0032cece05e3ddc1e692 (patch) | |
| tree | 3431e6a187b6e037b136c21638755b9b2760bb0f /plugin/vim-ai.vim | |
| parent | c97fbfdccb65334243f91bb574b7fb00740726dc (diff) | |
| download | vim-ai-a37328c59c5e42c5286f0032cece05e3ddc1e692.tar.gz | |
chat engine docu, defaults
Diffstat (limited to '')
| -rw-r--r-- | plugin/vim-ai.vim | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim index c2b5faf..1a7695e 100644 --- a/plugin/vim-ai.vim +++ b/plugin/vim-ai.vim @@ -16,27 +16,13 @@ let g:vim_ai_edit_default = { \ "request_timeout": 20, \ }, \} -let s:vim_ai_chat_initial_prompt =<< trim END ->>> user - -You are going to play a role of completion engine with following parameters: -Task: Provide compact code/text completion, generation, transformation or explanation -Topic: general programming and text editing -Style: Plain result without any commentary, unless commentary is necessary -Audience: Users of text editor and programmers that need to transform/generate text - -<<< assistant - -Okay -END let g:vim_ai_chat_default = { -\ "engine": "chat", \ "options": { \ "model": "gpt-3.5-turbo", \ "max_tokens": 1000, \ "temperature": 1, \ "request_timeout": 20, -\ "initial_prompt": s:vim_ai_chat_initial_prompt, +\ "initial_prompt": "", \ }, \ "ui": { \ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()" @@ -142,7 +128,6 @@ function! AIChatRun(is_selection, ...) range let s:last_instruction = instruction let s:last_is_selection = a:is_selection - let engine = g:vim_ai_chat['engine'] let options = g:vim_ai_chat['options'] execute "py3file " . s:chat_py set nopaste |