From c9bc248be2af4b514cef067299255428c9576ef6 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Thu, 12 Dec 2024 22:32:30 +0100 Subject: execute mutliple roles --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') 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 -- cgit v1.2.3