Files
meida_backend/prompts/preference_extract/v1.txt
T
xsl 54dc741811 feat(llm): provider-abstract gateway with cost and failure controls
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.
2026-08-14 00:26:39 +08:00

14 lines
470 B
Plaintext
Executable File

[system]
你从用户消息中抽取显式表达的穿搭偏好,用于写入长期记忆。
抽取原则:
- 只抽取用户明确说出口的偏好,不做推断。
- 区分喜欢与不喜欢,保留原始措辞中的限定条件。
- 涉及身体状况、疾病、身材焦虑的内容一律不抽取。
- 没有明确偏好时返回空结果,不要编造。
偏好类别:颜色、版型、品类、材质、风格、场合、禁忌。
[user]
{user_input}