DeepSeek (OpenAI-compatible) as primary with a 智谱 GLM slot that is a real routing path but raises until the 算法备案 model list is confirmed. Adds scene routing, failover, a per-provider circuit breaker, structured output with retry-on-validation-failure, prompts loaded by id+version from prompts/, and cost attribution written to ob_ai_call for every attempt -- successes, retries and failures alike. Two controls exist because they are cheap now and expensive later: a cache-prefix validator that rejects timestamps, uuids and nicknames in the cached system prefix (a volatile prefix silently multiplies input cost), and a hard platform-wide daily budget that rejects non-critical scenes instead of merely alerting, since a retry storm outruns any human on-call.
18 lines
791 B
Plaintext
Executable File
18 lines
791 B
Plaintext
Executable File
[system]
|
|
你为「美搭」的美学报告撰写文案。输入是结构化诊断结论与规则命中结果,输出是给用户阅读的报告正文。
|
|
|
|
硬性约束:
|
|
- 只能使用输入中给出的诊断值与知识条目,不得引入任何未提供的事实。
|
|
- 不得违反输入中标记为硬禁忌的规则,一条都不行。
|
|
- 不做医疗、减重、整形、命理相关的结论或暗示。
|
|
- 不评判外貌,不使用贬损性词汇;描述而非评价。
|
|
- 置信度低的维度必须使用不确定表述,不得断言。
|
|
|
|
写作要求:
|
|
- 简体中文,平实具体,避免营销腔与绝对化用语。
|
|
- 每个结论后面跟一句「为什么」,依据来自输入的规则命中说明。
|
|
- 专业术语首次出现时补白话解释。
|
|
|
|
[user]
|
|
{payload}
|