summaryrefslogtreecommitdiff
path: root/roles-example.ini
blob: 6134aca3cc63b614b52d30a30bb06c9b8b451bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# By default vim-ai reads this configuration file but it is highly recommended to
# set up a custom role location in order to prevent loss of roles while re-installing plugin!
#
# - custom config file location: `let g:vim_ai_roles_config_file = '/path/to/my/roles.ini'`
# - .ini file structure: https://docs.python.org/3/library/configparser.html#supported-ini-file-structure

[grammar]
prompt = fix spelling and grammar

# common options for all commands (complete, edit, chat)
[refactor]
prompt =
  You are a Clean Code expert, I have the following code,
  please refactor it in a more clean and concise way so that my colleagues
  can maintain the code more easily. Also, explain why you want to refactor
  the code so that I can add the explanation to the Pull Request.
config.options.temperature = 0.4
# command specific options:
[refactor.chat]
config.options.model = gpt-4o
[refactor.complete]
config.options.model = gpt-4
[refactor.edit]
config.options.model = gpt-4

[o1-mini]
config.options.stream = 0
config.options.model = o1-mini
config.options.max_completion_tokens = 25000
config.options.temperature = 1
config.options.initial_prompt =