LLM 与图像流水线内部机制
OpenRouter 客户端行为
OpenRouter 请求策略包括:
- timeout: 45s per attempt
- retries: up to 3 attempts
- retryable status codes: 408, 409, 429, 5xx
- transient network retry handling
结构化请求支持 parse 回调进行运行时校验。
计划与提示词校验
Ideon 会校验:
- 主要内容计划(长格式类型使用
articleSchema约束,短格式类型使用简化模式) - image prompt payloads (
promptrequired) - run configuration via Zod schema defaults and constraints
提供方返回无效输出时会快速失败,并返回可执行的错误信息。
章节规范化
生成文本会进行以下规范化:
- trimming whitespace
- removing markdown fences when present
- rejecting empty output sections
提示系统组合
提示词组合采用分层指令:
- shared writing framework (structure, information density, specificity, rhythm, scannability, active voice, storytelling discipline, authenticity filter)
- style overlay (
professional,friendly,technical,academic,opinionated,storytelling) - content-type/channel directives (
article,x-thread,x-post,linkedin-post, etc.)
文章规划提示还包含自适应说服指引,使规划器可基于受众与目标匹配选择 AIDA、PAS 或 BAB。
在多目标运行中,文章输出可作为社交/渠道输出的锚定上下文。
短格式输出路径
- 短格式内容类型(
x-post、x-thread、linkedin-post、reddit-post)通过单次提示生成。 - 它们仍经过统一的规划阶段,但计划是简化的(标题、描述、角度、封面图),不包含章节或内联图像。
- 第 3 阶段使用单次生成,而不是章节式撰写。
图像渲染路径
- Build image slots from plan (cover + inline)
- Expand each slot description to final prompt
- Build Replicate input from model registry and sanitized overrides
- Execute model and normalize output bytes
- Write image files and compute markdown-relative paths
Dry-Run 行为
Dry-run 会绕过提供方调用,但仍覆盖编排逻辑:
- deterministic synthetic plan and sections
- placeholder asset files
- normal markdown assembly