-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.json
More file actions
34 lines (34 loc) · 826 Bytes
/
Copy pathconfig.example.json
File metadata and controls
34 lines (34 loc) · 826 Bytes
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
{
"enabled": true,
"confirmCommand": "/fallback yes",
"cancelCommand": "/fallback no",
"maxAttempts": 5,
"cooldownMs": 8000,
"modelCacheMs": 60000,
"confirmAutoAppend": true,
"confirmCaseInsensitive": true,
"requireTextModality": true,
"ignoreRetryable": true,
"providerErrorPatterns": {
"openai": ["does not exist", "invalid model", "not supported"],
"anthropic": ["model is not supported", "not allowed"],
"google": ["model not found", "unsupported model"]
},
"modelAllowlist": [],
"modelDenylist": [],
"statusCodes": [401, 403, 404],
"errorPatterns": [
"model not found",
"not supported",
"invalid model",
"no api key",
"api key",
"unauthorized",
"forbidden",
"access denied"
],
"toast": {
"variant": "warning",
"duration": 8000
}
}