新增 Anthropic 链路,LLM 请求收口为 LlmRunRequest/LlmApiKind,新增Agent流程图绘图脚本 #70
Reference in New Issue
Block a user
Delete Branch "codex/llm-run-request-provider-kind"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
新增 Anthropic 链路,LLM 请求收口为 LlmRunRequest/LlmApiKind,为未来创建更多字段适配高级功能准备
d2b3df712ato2932a4041a发现
P1 apps/ai-game-creator-shell/src-tauri/src/main.rs:1348 只读取新的 GENARRATIVE_GAME_CREATOR_LLM_API_KIND / GENARRATIVE_LLM_API_KIND / LLM_API_KIND,旧的 *_LLM_PROTOCOL=chat_completions 不再兼容;但 Planner/Generator 会直接用新读取结果(:1843, :1887)。已有 .env.secrets.local 如果还用旧变量,会静默回默认 openai_responses,旧 Chat Completions 网关会被打错协议。最懒修法:继续接受旧变量别名,或检测到旧变量时报明确迁移错误。
P2 server-rs/crates/platform-llm/src/lib.rs:1833-1844 解析 Anthropic stream 时,message_delta.stop_reason=end_turn 后如果又收到 message_stop,会被覆盖成字面 "stop";覆盖发生在 :932-934。测试 :2641-2644 只覆盖了 message_delta,没覆盖两者同时出现的流。
P2 scripts/draw-agent-loop-flow.py:7-13 新脚本依赖 matplotlib,但仓库没有 requirements/脚本入口/隔离安装说明;我直接跑 python3 scripts/draw-agent-loop-flow.py --help 失败:matplotlib is required...。这个脚本现在是“提交了但仓库环境跑不了”。