diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-08 13:03:49 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-08 13:03:49 +0200 |
| commit | 11fd47c3fdd634ee03d33b08b53a6e0ae14fa6dc (patch) | |
| tree | 986ffae5f9119e44922c23e202f93bcf23b350ca /README.md | |
| parent | 8ad2f64a21c494f3fff07b2e7c852883b2272083 (diff) | |
| download | vim-ai-11fd47c3fdd634ee03d33b08b53a6e0ae14fa6dc.tar.gz | |
initial chat prompt docu
Diffstat (limited to '')
| -rw-r--r-- | README.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -189,6 +189,15 @@ let g:vim_ai_edit = { \ }, \} + +" This prompt instructs model to work with syntax highlighting +let s:initial_chat_prompt =<< trim END +>>> system + +You are a general assistant. +If you attach a code block add syntax type annotation to it, for example ```python. +END + " :AIChat " - https://platform.openai.com/docs/api-reference/chat let g:vim_ai_chat = { @@ -197,7 +206,7 @@ let g:vim_ai_chat = { \ "max_tokens": 1000, \ "temperature": 1, \ "request_timeout": 10, -\ "initial_prompt": "", +\ "initial_prompt": s:initial_chat_prompt, \ }, \} ``` |