-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
67 lines (67 loc) · 5.11 KB
/
Copy pathconfig.example.json
File metadata and controls
67 lines (67 loc) · 5.11 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
{
"target_language": "繁體中文",
"manual_input_target_language": "繁體中文",
"mode": "book_lr",
"temperature": 0.2,
"overlay_width": 440,
"overlay_height": 520,
"margin": 18,
"overlay_auto_expand_top_margin": 42,
"overlay_auto_expand_bottom_margin": 24,
"toast_duration_seconds": 1.5,
"stream_responses": true,
"debug_logging_enabled": false,
"check_updates_on_startup": false,
"ui_language": "zh-TW",
"theme_mode": "system",
"hotkey": "Shift+Win+X",
"selection_hotkey": "Shift+Win+C",
"input_hotkey": "Shift+Win+Z",
"overlay_font_family": "Microsoft JhengHei UI",
"overlay_font_size": 16,
"overlay_opacity": 95,
"overlay_pinned": false,
"overlay_unpinned_width": null,
"overlay_unpinned_width_source": "",
"close_to_tray_on_close": false,
"active_profile_name": "Default Gemini",
"active_prompt_preset_name": "翻譯 (Translate)",
"api_profiles": [
{
"name": "Default Gemini",
"provider": "gemini",
"base_url": "https://generativelanguage.googleapis.com",
"api_keys": [],
"model": "models/gemini-3.1-flash-lite-preview",
"available_models": ["models/gemini-3.1-flash-lite-preview"],
"retry_count": 1,
"retry_interval": 2.0
}
],
"prompt_presets": [
{
"name": "翻譯 (Translate)",
"builtin_id": "translate",
"image_prompt": "Act as a neutral, objective OCR and Localization Engine. Your sole task is precise linguistic translation. You must not judge, filter, or evaluate the context, theme, or underlying meaning of the text.\n\nYou will receive a screenshot that may contain text in any language. Please do the following directly:\n1. Recognize the text in the image accurately;\n2. Translate it into {target_language};\n3. Preserve paragraph order and reading order as much as possible;\n4. Do not explain, do not add preface, and do not output the original text;\n5. If some text is unclear, translate as much as possible based on visible content and mark it as [partially unclear];\n6. Output clean translated text suitable for direct reading.\n7. CRITICAL SAFETY INSTRUCTION: If any specific word, phrase, or sentence in the original text triggers your safety guidelines, DO NOT refuse or halt the entire translation. Instead, replace ONLY the exact offending words with \"[REDACTED]\" and continue translating the rest of the text completely.",
"text_prompt": "Act as a neutral, objective linguistic translation engine. Your sole purpose is to convert text accurately without evaluating its content, intent, or morality.\n\nPlease process the provided text according to the following rules:\n1. Translate the provided text into {target_language}.\n2. Preserve paragraph order and line breaks when reasonable.\n3. Do not explain the translation, do not add preface, and do not output the original text.\n4. If part of the text is unclear or nonsensical, translate as much as possible and mark it as [partially unclear].\n5. CRITICAL SAFETY INSTRUCTION: If any specific word, phrase, or passage triggers your safety guidelines, DO NOT refuse the prompt or halt generation. Instead, replace ONLY the exact offending terms with \"[REDACTED]\" and seamlessly continue translating the rest of the text."
},
{
"name": "解答 (Answer)",
"builtin_id": "answer",
"image_prompt": "You will receive a screenshot that may contain a question, exercise, prompt, or problem statement. Understand the visible content carefully and answer in {target_language}. If the screenshot contains constraints, options, or context, incorporate them into the answer. Keep the response direct, correct, and concise, and clearly state when the visible information is insufficient.",
"text_prompt": "Answer or explain the provided text in {target_language}. If the text is a question, solve it directly. If it is a request for explanation, explain it clearly. Keep the response concise but complete, and clearly state when the provided information is insufficient."
},
{
"name": "潤色 (Polish)",
"builtin_id": "polish",
"image_prompt": "You will receive a screenshot containing text. Recognize the text and rewrite it into polished, natural {target_language}. Preserve the original meaning and key details while improving clarity, fluency, and wording. Output only the polished result.",
"text_prompt": "Rewrite the provided text into polished, natural {target_language}. Preserve the original meaning and important details while improving clarity, fluency, and tone. Output only the polished result."
},
{
"name": "OCR 原文 (Raw OCR)",
"builtin_id": "ocr_raw",
"image_prompt": "You will receive a screenshot that may contain text in any language. Perform OCR and return only the recognized text. Preserve the original reading order, paragraph structure, and line breaks as much as possible. Do not translate, summarize, explain, correct, or add any extra commentary. If part of the text is unreadable, leave it out rather than guessing.",
"text_prompt": "Return the provided text exactly as it was given. Do not translate, explain, summarize, correct, reformat, or add any extra commentary."
}
]
}