-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbatchai.yaml
285 lines (263 loc) · 8.99 KB
/
batchai.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
excludes: ['.git','.svn', 'vendor', 'node_modules']
cache_dir: ${BATCHAI_CACHE_DIR}
lang: ${LANG}
test:
model_id: ${BATCHAI_TEST_MODEL}
includes: ['*.py', '*.python', '*.cs', '*.cpp', '*.cc', '*.h', '*.hpp', '*.c', '*.ruby', '*.go', '*.java', '*.kt', '*.lua', '*.rs', '*.scala', '*.ts', '*.php', '*.swift', '*.pl']
prompt:
rules:
- "${BATCHAI_TEST_RULE_1}"
- "${BATCHAI_TEST_RULE_2}"
- "${BATCHAI_TEST_RULE_3}"
- "${BATCHAI_TEST_RULE_4}"
- "${BATCHAI_TEST_RULE_5}"
- "${BATCHAI_TEST_RULE_6}"
- "${BATCHAI_TEST_RULE_7}"
- "${BATCHAI_TEST_RULE_8}"
- "${BATCHAI_TEST_RULE_9}"
- "${BATCHAI_TEST_RULE_10}"
- "${BATCHAI_TEST_RULE_11}"
- "${BATCHAI_TEST_RULE_12}"
- "${BATCHAI_TEST_RULE_13}"
- "${BATCHAI_TEST_RULE_14}"
- "${BATCHAI_TEST_RULE_15}"
- "${BATCHAI_TEST_RULE_16}"
- "${BATCHAI_TEST_RULE_17}"
- "${BATCHAI_TEST_RULE_18}"
- "${BATCHAI_TEST_RULE_19}"
- "${BATCHAI_TEST_RULE_20}"
- "${MY_TEST_RULE_1}"
- "${MY_TEST_RULE_2}"
- "${MY_TEST_RULE_3}"
- "${MY_TEST_RULE_4}"
- "${MY_TEST_RULE_5}"
- "${MY_TEST_RULE_6}"
- "${MY_TEST_RULE_7}"
- "${MY_TEST_RULE_8}"
- "${MY_TEST_RULE_9}"
- "${MY_TEST_RULE_10}"
- "${MY_TEST_RULE_11}"
- "${MY_TEST_RULE_12}"
- "${MY_TEST_RULE_13}"
- "${MY_TEST_RULE_14}"
- "${MY_TEST_RULE_15}"
- "${MY_TEST_RULE_16}"
- "${MY_TEST_RULE_17}"
- "${MY_TEST_RULE_18}"
- "${MY_TEST_RULE_19}"
- "${MY_TEST_RULE_20}"
template: |
As an developer expert, you're requested to write test cases provided code following belows rules:
{{.test_rules}}
Path of code to test: {{.path}}
Existing test code:
{{.existing_test_code}}
Content of code to test:
```
{{.code_to_test}}
```
check:
model_id: ${BATCHAI_CHECK_MODEL}
includes: ['Dockerfile','*.xml','*.py', '*.python', '*.cs', '*.cpp', '*.cc', '*.h', '*.hpp', '*.c', '*.ruby', '*.go', '*.html', '*.htm', '*.java', '*.json', '*.kt', '*.lua', '*.rs', '*.scala', '*.ts', '*.php', '*.proto', '*.swift', '*.md', '*.pl','*.sh','*.yaml','*.yml']
severity: ${BATCHAI_CHECK_SEVERITY}
prompt:
rules:
- "${BATCHAI_CHECK_RULE_1}"
- "${BATCHAI_CHECK_RULE_2}"
- "${BATCHAI_CHECK_RULE_3}"
- "${BATCHAI_CHECK_RULE_4}"
- "${BATCHAI_CHECK_RULE_5}"
- "${BATCHAI_CHECK_RULE_6}"
- "${BATCHAI_CHECK_RULE_7}"
- "${BATCHAI_CHECK_RULE_8}"
- "${BATCHAI_CHECK_RULE_9}"
- "${BATCHAI_CHECK_RULE_10}"
- "${BATCHAI_CHECK_RULE_11}"
- "${BATCHAI_CHECK_RULE_12}"
- "${BATCHAI_CHECK_RULE_13}"
- "${BATCHAI_CHECK_RULE_14}"
- "${BATCHAI_CHECK_RULE_15}"
- "${BATCHAI_CHECK_RULE_16}"
- "${BATCHAI_CHECK_RULE_17}"
- "${BATCHAI_CHECK_RULE_18}"
- "${BATCHAI_CHECK_RULE_19}"
- "${BATCHAI_CHECK_RULE_20}"
- "${MY_CHECK_RULE_1}"
- "${MY_CHECK_RULE_2}"
- "${MY_CHECK_RULE_3}"
- "${MY_CHECK_RULE_4}"
- "${MY_CHECK_RULE_5}"
- "${MY_CHECK_RULE_6}"
- "${MY_CHECK_RULE_7}"
- "${MY_CHECK_RULE_8}"
- "${MY_CHECK_RULE_9}"
- "${MY_CHECK_RULE_10}"
- "${MY_CHECK_RULE_11}"
- "${MY_CHECK_RULE_12}"
- "${MY_CHECK_RULE_13}"
- "${MY_CHECK_RULE_14}"
- "${MY_CHECK_RULE_15}"
- "${MY_CHECK_RULE_16}"
- "${MY_CHECK_RULE_17}"
- "${MY_CHECK_RULE_18}"
- "${MY_CHECK_RULE_19}"
- "${MY_CHECK_RULE_20}"
template: |
As an developer expert, you're requested by users to check provided file:
{{.check_rules}}
Path of file to check: {{.path}}
Content of file to check:
```
{{.code_to_check}}
```
models:
- id: openai/gpt-4o
name: gpt-4o
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 128000
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: openai/gpt-4o-mini
name: gpt-4o-mini
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 16384
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: openai/gpt-4-turbo
name: gpt-4-turbo
context_window: 12800
temperature: ${BATCHAI_CHAT_TEMERATURE}
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: openai/gpt-4
name: gpt-4
context_window: 8192
temperature: ${BATCHAI_CHAT_TEMERATURE}
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: openai/gpt-3.5-turbo
name: gpt-3.5-turbo
context_window: 16385
temperature: ${BATCHAI_CHAT_TEMERATURE}
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: openai/gpt-3.5-turbo-instruct
name: gpt-3.5-turbo-instruct
context_window: 4096
temperature: ${BATCHAI_CHAT_TEMERATURE}
api_key: ${OPENAI_API_KEY}
base_url: ${OPENAI_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ${OPENAI_PROXY_URL}
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ${OPENAI_PROXY_USER}
proxy_pass: ${OPENAI_PROXY_PASS}
- id: tongyi/qwen2.5-coder-7b-instruct
name: qwen2.5-coder-7b-instruct
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 32768
max_completion_tokens: 32768
api_key: ${QWEN_API_KEY}
base_url: ${QWEN_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:7b-instruct-fp16
name: qwen2.5-coder:7b-instruct-fp16
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:7b-instruct-q4_0
name: qwen2.5-coder:7b-instruct-q4_0
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:7b-instruct-q8_0
name: qwen2.5-coder:7b-instruct-q8_0
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:14b-instruct-fp16
name: qwen2.5-coder:14b-instruct-fp16
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:14b-instruct-q4_1
name: qwen2.5-coder:14b-instruct-q4_1
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''
- id: ollama/qwen2.5-coder:14b-instruct-q8_0
name: qwen2.5-coder:14b-instruct-q8_0
temperature: ${BATCHAI_CHAT_TEMERATURE}
context_window: 131072
max_completion_tokens: 1310720
api_key: ${OLLAMA_API_KEY}
base_url: ${OLLAMA_BASE_URL}
timeout: ${BATCHAI_API_TIMEOUT}
proxy_url: ''
proxy_insecure_skip_verify: ${BATCHAI_PROXY_INSECURE_SKIP_VERIFY}
proxy_user: ''
proxy_pass: ''