From 4a9a44ec891c81af93bcf5d5ddde2e1fb481317d Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Mon, 10 Apr 2023 11:27:31 +0200 Subject: chat options docu --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 360a471..b66c177 100644 --- a/README.md +++ b/README.md @@ -122,8 +122,9 @@ Default interface configuration: ```vim let g:vim_ai_chat = { \ "ui": { -\ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()", \ "code_syntax_enabled": 1, +\ "populate_options": 0, +\ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()", \ }, \} ``` @@ -160,6 +161,25 @@ let g:vim_ai_chat = { \} ``` +Or modify options directly during the vim session: + +```vim +let g:vim_ai_chat['options']['model'] = 'gpt-4' +let g:vim_ai_chat['options']['temperature'] = 0.2 +``` + +You can also customize the options in the chat header: + +```properties +[chat-options] +model=gpt-4 +temperature=0.2 + +>>> user + +generate a paragraph of lorem ipsum +``` + Below are listed available options along with default values: ```vim -- cgit v1.2.3