#43590 [Frontend][Responses API] Fold developer-role input messages into instructions
原始 PR · 作者 chaunceyjiang · 合并时间 2026-06-03 22:52
折叠 developer 角色消息为 system
此 PR 值得阅读,展示了处理 API 角色兼容性的谨慎做法:检测、转换、合并,并选择在共享的 `safe_apply_chat_template` 中实现,而非特定于 Responses API。测试覆盖完整,设计决策中有 trade-off 讨论,适合作为类似兼容性需求的参考模式。
参与讨论