feat(polish): add context safeguards, layered prompts, and output validation

Use redacted cursor neighborhood and pause-aware chunks for more natural polish,
validate protected terms with retry/local fallback, and structure bilingual prompts
for consistency and provider prefix caching.
This commit is contained in:
Rocky
2026-07-29 17:45:11 +08:00
parent 2d44423f4c
commit 34be2e8dd1
40 changed files with 1827 additions and 183 deletions
+2 -2
View File
@@ -51,8 +51,8 @@
## 隐私
- **默认本地识别** — 录音在设备上转写,不经过我们的服务器
- **润色只发文字** — 发给 LLM 的是转写文本,不是原始音频
- **不记录击键** — 键盘扩展不采集、不上传你的日常输入内容
- **润色只发文字** — 发给 LLM 的是转写文本,以及用于衔接的少量光标附近文字,不是原始音频
- **不记录击键** — 光标上下文仅在润色时临时使用,不写入日志或语音历史;密码框完全不采集
- 详见 [隐私政策](https://hkgood.github.io/OSGKeyboard/privacy/)
---