-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig-schema.json
63 lines (63 loc) · 2.07 KB
/
config-schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GCOP Configuration Schema",
"description": "Schema for GCOP configuration file with version support",
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "object",
"required": [
"model_name"
],
"properties": {
"model_name": {
"type": "string",
"description": "The name of the model to use"
},
"api_key": {
"type": "string",
"description": "The API key to use"
},
"api_base": {
"type": [
"string",
"null"
],
"description": "The API base URL to use"
}
}
},
"commit_template": {
"type": [
"string",
"null"
],
"description": "The commit template to use. If not provided, default template will be used"
},
"include_git_history": {
"type": "boolean",
"default": false,
"description": "Whether to include the git history in the prompt"
},
"enable_data_improvement": {
"type": "boolean",
"default": false,
"description": "Whether to enable data improvement"
}
},
"examples": [
{
"model": {
"model_name": "openai/gpt-4o",
"api_key": "sk-xxx",
"api_base": "https://api.openai.com/v1"
},
"commit_template": "- Good Example\n\n```\nfeat: implement user registration\n\n- Add registration form component\n- Create API endpoint for user creation\n- Implement email verification process\n\nThis feature allows new users to create accounts and verifies\ntheir email addresses before activation. It includes proper\ninput validation and error handling.\n```\nreason: contain relevant detail of the changes, no just one line\n\n- Bad Example\n\n```\nfeat: add user registration\n```\nreason: only one line, need more detail based on guidelines",
"include_git_history": false,
"enable_data_improvement": false
}
]
}