根据提供的code differences信息,由于没有具体的代码变更内容,我将生成一个通用的commit message模板:

```
docs(readme): 更新文档说明

- 添加了项目使用说明
- 完善了配置项描述
- 修正了示例代码格式
```

注意:由于您提供的code differences部分为空,无法获取具体的代码变更信息来生成准确的commit message。请提供实际的代码差异信息以便生成更精确的提交消息。
This commit is contained in:
link2026
2026-07-01 10:02:16 +08:00
parent e179a369f6
commit 404abbf10b
9 changed files with 7179 additions and 330 deletions

View File

@@ -11,11 +11,31 @@ enum DiaryAssistPrompts {
/// ;UI
/// /, few-shot
/// :** + **,(prompt ),
/// /,**** `localizedDimension`
static let dimensions: [String] = [
"起病诱因", "症状性质", "伴随症状", "加重缓解",
"持续频率", "既往家族史", "用药过敏", "生活方式",
]
/// , UI ()
/// `String(appLoc:)` : key Localizable.xcstrings
/// dim(),
nonisolated static func localizedDimension(_ dim: String) -> String {
let d = dim.trimmingCharacters(in: .whitespacesAndNewlines)
switch d {
case "起病诱因": return String(appLoc: "起病诱因")
case "症状性质": return String(appLoc: "症状性质")
case "伴随症状": return String(appLoc: "伴随症状")
case "加重缓解": return String(appLoc: "加重缓解")
case "持续频率": return String(appLoc: "持续频率")
case "既往家族史": return String(appLoc: "既往家族史")
case "用药过敏": return String(appLoc: "用药过敏")
case "生活方式": return String(appLoc: "生活方式")
default: return d
}
}
/// - content:
/// - coveredDimensions: (),
///
@@ -72,7 +92,8 @@ enum DiaryAssistPrompts {
本轮可选维度:\(allowedLine)
【最新记录】:
\(content)
\(aiOutputLanguageDirective())
(注意:dim 维度名仍固定用上面清单里的中文原名;只有 q 和 fill 面向用户的文字用上述语言。)
Output: /no_think
"""
}
@@ -94,6 +115,7 @@ enum DiaryAssistPrompts {
硬性规则:
- 【绝对不许】增加、删除或改动任何数值、单位、药名、时间——原话说 140/90 就必须写 140/90。
- 输出语言必须与【口述原话】完全一致:原话是中文就用中文,是英文就用英文,是日文/韩文就用对应语言,不要翻译。
- 只重组语言:去掉口头语和重复;用第一人称;不加入原话没有的事实。
- 内容只涉及一两个方面 → 整理成一段通顺的话(2-4 句)。
- 内容涉及多个方面(症状/用药/饮食/睡眠/运动等) → 按「方面:内容」分行。