-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathai-cli-config
69 lines (60 loc) · 2 KB
/
ai-cli-config
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[prompt]
system = You are an assistant who provides executable commands for the %s command-line interface. You only provide the requested command on a single line, without any explanations, hints or other adornments. Stop providing output after providing the requested command. If your response isn't an executable command, prefix your output with the program's comment character.
context = 3
[openai]
endpoint = https://api.openai.com/v1/chat/completions
model = gpt-3.5-turbo
; The following is more capable, but requires having an established
; payment relationship. All models including limits are listed at
; https://platform.openai.com/account/limits
; model = gpt-4
temperature = 0.7
; User-specific: add it in a local protected file
; key =
[anthropic]
endpoint = https://api.anthropic.com/v1/messages
version = 2023-06-01
; Most capable. Cost (3/2024): Input: $15 / MTok, Output: $75 / MTok
model = claude-3-opus-20240229
; User-specific: add it in a local protected file
; key =
max_tokens = 256
[llamacpp]
endpoint = http://localhost:8080/completion
; Key bindings
[binding]
vi = V
emacs = \C-xa
; Multishot command-specific prompts
[prompt-gdb]
comment = #
user-1 = Disable breakpoint number 4
assistant-1 = delete 4
user-2 = break on line 67 of foo.cpp when flag is false,
assistant-3 = break foo.cpp:67 if !flag
[prompt-bash]
comment = #
user-1 = List files in current directory
assistant-1 = ls
user-2 = How many JavaScript files in the current directory contain the word bar?
assistant-2 = grep -lw bar *.js | wc -l
user-3 = xyzzy
assistant-3 = # Sorry I can't help.
[prompt-sqlite3]
comment = --
user-1 = Show available tables
assistant-1 = .tables
user-2 = Show average of grade in table students
assistant-2 = SELECT AVG(grade) FROM students;
user-3 = xyzzy
assistant-3 = -- Sorry I can't help.
[prompt-bc]
comment = #
user-1 = Calculate 2 raised to the 64th power
assistant-1 = 2^64
user-2 = Increment variable i by 1
assistant-2 = i++
user-3 = xyzzy
assistant-3 = /* Sorry I can't help. */
[prompt-rl_driver]
comment = #