Commit Graph
4 Commits
Author SHA1 Message Date
Evan 6341b4fffc fix(server): 出厂配置的占位凭据不再被当作真凭据
IsPlaceholderToken 与 IsUsableSecret 都只识别 `<YOUR_OWN_` 前缀,而 config.default.toml 实际使用
`<YOUR_XXX>` 和 `FAKESECRET_` 两种写法,18 个占位符无一被识别。叠加 ai_assistant.enabled、
voice_input.voice_input、tencent_tmt.enabled 三项默认为 true,全新安装在用户未做任何配置的情况下
就会把输入串发往 api.deepseek.com、把候选文本发往 tmt.tencentcloudapi.com——请求虽然鉴权失败,
内容已经离开本机。

两处判定改为按占位符的形状判断,并新增 test_default_config_credentials:它直接读安装器实际打包的
config.default.toml,逐条校验没有任何凭据被当成可用值,因此换一种占位符写法也会被拦下。
2026-09-06 11:56:11 +09:00
fanlusky 1eef18401c Fix the issue where long sentence translations are not fully displayed. 2026-08-25 20:01:48 +08:00
fanlusky 03b4dfeff4 Supplement: Tencent Cloud API translation from English to Chinese, and API invocation. 2026-08-22 19:44:06 +08:00
fanlusky 7bc55dab39 Integrate the Tencent Cloud Machine Translation API. 2026-08-22 02:22:38 +08:00