-
Notifications
You must be signed in to change notification settings - Fork 5
/
batchai.env
43 lines (37 loc) · 2.91 KB
/
batchai.env
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
BATCHAI_CACHE_DIR=build/batchai
#OPENAI_API_KEY
#OPENAI_ORG_ID
#OPENAI_PROJECT_ID
OPENAI_BASE_URL=https://api.openai.com/v1/
OPENAI_PROXY_URL=
OPENAI_PROXY_USER=
OPENAI_PROXY_PASS=
#QWEN_API_KEY
QWEN_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1/
QWEN_MAX_CONCURRENT_REQUESTS=1
#OLLAMA_API_KEY=
OLLAMA_BASE_URL=http://localhost:11434/v1/
OLLAMA_MAX_CONCURRENT_REQUESTS=1
BATCHAI_TEST_MODEL=openai/gpt-4o-mini
BATCHAI_CHECK_MODEL=openai/gpt-4o-mini
BATCHAI_PROXY_INSECURE_SKIP_VERIFY=false
BATCHAI_CHAT_TEMERATURE=0.2
BATCHAI_API_TIMEOUT=120s
BATCHAI_CHECK_SEVERITY=minor
BATCHAI_CHECK_RULE_1=Check Report Structure : The code check result must first display a report in the following JSON format: ```json {{.check_report_json_format}} ```
BATCHAI_CHECK_RULE_2=Conditional Output: On detecting issues, you must output the fixed file as a separate segment starting with {{.fix_begin}} and ending with {{.fix_end}}, inclusive of the complete original content, DO NOT includes issue lines only. If no issues are found, do not output a fixed file.
BATCHAI_CHECK_RULE_3=Issue Severity : Only report and process issues that have a severity of 'minor' or higher. Ignore issues labeled as '{{.severity}}'
BATCHAI_CHECK_RULE_4=Code Formatting : Maintain the original formatting of the code without reformatting it during the check process.
BATCHAI_CHECK_RULE_5=Explanation Language : All explanations must be provided in {{.lang}}
BATCHAI_CHECK_RULE_6=Severity of Documentation Issues : Treat issues related solely to comments or documents as trivial in severity. These should not be reported unless specifically requested otherwise.
BATCHAI_CHECK_RULE_7=Keep original existing imports and license information and comments.
BATCHAI_CHECK_RULE_8=Follow latest language specification.
# BATCHAI_CHECK_RULE_9=For symbols that is not defined within the current file, must find them in the symbol table that user : don't define them by yourself, instead, assuming they're defined and also already initialized elsewhere, check them in the symbol table which is provided by the user
BATCHAI_TEST_RULE_1=Must output 2 segments. The first segment must respect below JSON format: \n```json {{.test_format}} ```\n, the second segment must the generated test source code file in a code block starting with {{.test_begin}} and ending with {{.test_end}}. Must always include the test source code file segment.
BATCHAI_TEST_RULE_2=Must use test libraries: {{.libraries}}
BATCHAI_TEST_RULE_3=Code Style must be same as the code to test
BATCHAI_TEST_RULE_4=Explain the testcase using doc block in {{.lang}}
BATCHAI_TEST_RULE_5=In comments, explain the testcase steps using {{.lang}}
BATCHAI_TEST_RULE_6=Must follow latest language specification.
BATCHAI_TEST_RULE_7=Must generate both happy path and positive cases and negative cases and corner cases
BATCHAI_TEST_RULE_8=All of generated test cases must be in a single file instead of each test cases has its own test file respectively