diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-27 22:49:07 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-27 22:49:07 +0200 |
| commit | c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (patch) | |
| tree | 3b28d61905b9aa640ae99183508073ffd982b556 /plugin | |
| parent | 8af2250ee04a228e064a750f341812c02134081d (diff) | |
| download | vim-ai-c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2.tar.gz | |
chat initial prompt poc
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/vim-ai.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim index 5105abd..0672597 100644 --- a/plugin/vim-ai.vim +++ b/plugin/vim-ai.vim @@ -14,12 +14,27 @@ 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 = { \ "options": { \ "model": "gpt-3.5-turbo", \ "max_tokens": 1000, \ "temperature": 1, \ "request_timeout": 20, +\ "initial_prompt": s:vim_ai_chat_initial_prompt, \ }, \} if !exists('g:vim_ai_complete') |