diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-12 22:32:30 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-12 22:32:30 +0100 |
| commit | c9bc248be2af4b514cef067299255428c9576ef6 (patch) | |
| tree | f905da70b4fb0b54caa357fe6c9acf4608991608 /README.md | |
| parent | 522656415ea36e3be2c12c5a78b11067731a50eb (diff) | |
| download | vim-ai-c9bc248be2af4b514cef067299255428c9576ef6.tar.gz | |
execute mutliple roles
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -185,7 +185,7 @@ Note that the randomness of responses heavily depends on the [`temperature`](htt ## Roles -In the context of this plugin, a role means a re-usable AI instruction and/or configuration. Roles are defined in the configuration `.ini` file. For example by defining a `grammar` role: +In the context of this plugin, a role means a re-usable AI instruction and/or configuration. Roles are defined in the configuration `.ini` file. For example by defining a `grammar` and `o1-mini` role: ```vim let g:vim_ai_roles_config_file = '/path/to/my/roles.ini' @@ -200,6 +200,9 @@ prompt = fix spelling and grammar [grammar.options] temperature = 0.4 +[grammar] +prompt = fix spelling and grammar + [o1-mini] [o1-mini.options] stream = 0 @@ -211,6 +214,8 @@ initial_prompt = Now you can select text and run it with command `:AIEdit /grammar`. +You can also combine roles `:AI /o1-mini /grammar helo world!` + See [roles-example.ini](./roles-example.ini) for more examples. ## Key bindings |