-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
39 lines (34 loc) · 849 Bytes
/
config.yml
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
# 本地 OCR 服务配置
ocr:
umiocr:
api_url: "http://127.0.0.1:1224"
# LLM 服务配置
llm:
models:
- provider: "openai"
api_key: "sk-"
api_base_url: "https://api.openai.com/v1"
name: "gpt-4o-mini"
ident: "default"
prompts:
- ident: "summarize"
prompt: "Summarize the following text and create concise notes:\n\n%s"
- ident: "key-points"
prompt: "Extract the key points from the following text:\n\n%s"
- ident: "explain"
prompt: "Explain the following text in simpler terms:\n\n%s"
# OCR 后处理
after_ocr:
auto_fix_content:
enabled: false
rules:
- type: "llm"
ident: "default"
translate:
enabled: false
target_language: "zh-CN"
by: "llm"
use_ident: "default"
generate_by_llm:
enabled: false
prompt_ident: "summarize"