-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.codernicrc-example.json
More file actions
124 lines (124 loc) · 3.33 KB
/
.codernicrc-example.json
File metadata and controls
124 lines (124 loc) · 3.33 KB
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
{
"$schema": "./schemas/codernicrc.schema.json",
"indexer": {
"languages": ["typescript", "javascript"],
"respectGitignore": false,
"forceIncludePatterns": ["_private/**"],
"excludePatterns": ["node_modules", "dist", "build", ".git", "coverage", "**/node_modules", "**/.git"]
},
"models": {
"providers": [
{
"id": "local-gemma",
"type": "ollama",
"baseUrl": "http://localhost:11434",
"timeout": 30000,
"retries": 2,
"models": [
{
"name": "gemma:7b",
"alias": "fast",
"contextWindow": 8192,
"costPer1kInputTokens": 0,
"costPer1kOutputTokens": 0
},
{
"name": "gemma2:27b",
"alias": "balanced",
"contextWindow": 131072,
"costPer1kInputTokens": 0,
"costPer1kOutputTokens": 0
},
{
"name": "gemma2:27b-instruct",
"alias": "powerful",
"contextWindow": 131072,
"costPer1kInputTokens": 0,
"costPer1kOutputTokens": 0
}
]
},
{
"id": "local-mistral",
"type": "ollama",
"baseUrl": "http://localhost:11434",
"timeout": 30000,
"retries": 2,
"models": [
{
"name": "mistral:latest",
"alias": "balanced",
"contextWindow": 32000,
"costPer1kInputTokens": 0,
"costPer1kOutputTokens": 0
}
]
},
{
"id": "azure-openai",
"type": "azure",
"baseUrl": "$env.AZURE_OPENAI_ENDPOINT",
"apiKey": "$env.AZURE_OPENAI_KEY",
"timeout": 30000,
"retries": 3,
"models": [
{
"name": "gpt-4",
"alias": "powerful",
"contextWindow": 8192,
"costPer1kInputTokens": 0.03,
"costPer1kOutputTokens": 0.06
},
{
"name": "gpt-4-turbo",
"alias": "balanced",
"contextWindow": 128000,
"costPer1kInputTokens": 0.01,
"costPer1kOutputTokens": 0.03
},
{
"name": "gpt-35-turbo",
"alias": "fast",
"contextWindow": 4096,
"costPer1kInputTokens": 0.0005,
"costPer1kOutputTokens": 0.0015
}
]
},
{
"id": "openai",
"type": "openai",
"baseUrl": "https://api.openai.com/v1",
"apiKey": "$env.OPENAI_API_KEY",
"timeout": 30000,
"retries": 3,
"models": [
{
"name": "gpt-4",
"alias": "powerful",
"contextWindow": 8192,
"costPer1kInputTokens": 0.03,
"costPer1kOutputTokens": 0.06
},
{
"name": "gpt-4-turbo",
"alias": "balanced",
"contextWindow": 128000,
"costPer1kInputTokens": 0.01,
"costPer1kOutputTokens": 0.03
},
{
"name": "gpt-3.5-turbo",
"alias": "fast",
"contextWindow": 4096,
"costPer1kInputTokens": 0.0005,
"costPer1kOutputTokens": 0.0015
}
]
}
],
"default": "local-gemma",
"fallback": "azure-openai",
"healthCheckInterval": 300000
}
}