聊天消息 JSON

行文本转成类 OpenAI messages JSON。

解析「system: …」「user: …」行为 messages JSON 数组。无前缀行当作 user。和包装工具不同,这里生成结构化 JSON。纯本地,不调 API。

结果: [ { "role": "system", "content": "Be brief." }, { "role": "user", "content": "List three colors." } ]

个数: 2

角色种类: 2

字符数: 125