summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <martin.bielik@instea.sk>2024-12-12 22:32:30 +0100
committerMartin Bielik <martin.bielik@instea.sk>2024-12-12 22:32:30 +0100
commitc9bc248be2af4b514cef067299255428c9576ef6 (patch)
treef905da70b4fb0b54caa357fe6c9acf4608991608 /README.md
parent522656415ea36e3be2c12c5a78b11067731a50eb (diff)
downloadvim-ai-c9bc248be2af4b514cef067299255428c9576ef6.tar.gz
execute mutliple roles
Diffstat (limited to '')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index e8ca86a..c1cac6b 100644
--- a/README.md
+++ b/README.md
@@ -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