forked from CBIhalsen/PolyglotPDF
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.json
More file actions
61 lines (60 loc) · 1.31 KB
/
config.json
File metadata and controls
61 lines (60 loc) · 1.31 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
{
"count": 2,
"PPC": 20,
"translation_services": {
"AI302": {
"auth_key": "",
"model_name": ""
},
"Doubao": {
"auth_key": "",
"model_name": ""
},
"GLM": {
"auth_key": "",
"model_name": "glm-4-flash"
},
"Grok": {
"auth_key": "",
"model_name": "grok-2-latest"
},
"Qwen": {
"auth_key": "",
"model_name": "qwen-plus"
},
"ThirdParty": {
"api_url": "",
"auth_key": "",
"model_name": "gpt-4o-mini"
},
"deepl": {
"auth_key": ""
},
"deepseek": {
"auth_key": "",
"model_name": "deepseek-chat",
"base_url": "https://api.deepseek.com/v1"
},
"openai": {
"auth_key": "",
"model_name": "gpt-4o-mini"
},
"youdao": {
"app_key": "",
"app_secret": ""
}
},
"ocr_services": {
"tesseract": {
"path": "C:\\Program Files\\Tesseract-OCR\\tesseract.exe"
}
},
"default_services": {
"ocr_model": false,
"Enable_translation": true,
"Translation_api": "AI302"
},
"translation_prompt": {
"system_prompt": "You are a professional translator. Translate from {original_lang} to {target_lang}. Return only the translation without explanations or notes."
}
}