Fix CSP compatibility and implement MOC126 and MOC-153 updates#396
Fix CSP compatibility and implement MOC126 and MOC-153 updates#396Alpaca233114514 wants to merge 5 commits into
Conversation
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
|
?126怎么在上面 |
切 GPT 走 relay /backend-api/.../responses,被 passthrough_chatgpt_backend 提前拦截、不经 Adapter。原 #396/#398 把注入放在 ResponsesPassthroughAdapter 是死代码路径、从不执行。本 PR 在 passthrough_chatgpt_backend 转发前对切 GPT 对话请求注入 Codex 身份中性占位,过 OpenAI 后端 instructions 非空校验。 收窄触发避免误伤 getAccount/plugins 等 backend 请求;content-length 跟随 重算;注入可观测(INFO + 回写失败去重 WARN);9 单测。待 relay 真机验证生效。
|
@Alpaca233114514 感谢你对 MOC-153 的排查 🙏 这个 PR 里的 最终我们在 #419(已 merge) 里换了个注入位置彻底解决,说明一下原因: proxy 侧注入(本 PR 在 passthrough/forward 注入)够不着真正出问题的请求。 复现场景是「停掉 transfer 后把会话切到真 GPT」—— 此时 GPT 直连 chatgpt.com、完全不经过 transfer 的 proxy(真机 forward-trace 对 #419 的做法(方向 C):transfer 给 Codex 的 model catalog( 你的诊断和「注入非空 instructions」的核心思路直接促成了本次修复,会把你署为 co-author。本 PR 的 MOC-153 部分已由 #419 取代,先 close。感谢 🙏 |
#419(catalog base_instructions 路线)采纳了 @Alpaca233114514 在 #396/#398 里 的 MOC-153 贡献:第三方切 GPT 报 `Instructions are required` 400 的根因诊断 (顶层 instructions 空)+ 注入非空 instructions 的核心思路。#419 已 squash-merge 进 main、无法 amend,故在此 follow-up commit 以 Co-Authored-By 形式署名。 Co-Authored-By: ALPACA LI <alpaca8570@outlook.com>
#419(catalog base_instructions 路线)采纳了 @Alpaca233114514 在 #396/#398 里 的 MOC-153 贡献:第三方切 GPT 报 `Instructions are required` 400 的根因诊断 (顶层 instructions 空)+ 注入非空 instructions 的核心思路。#419 已 squash-merge 进 main、无法 amend,故在此 follow-up commit 以 Co-Authored-By 形式署名。 Co-Authored-By: ALPACA LI <alpaca8570@outlook.com>
#419(catalog base_instructions 路线)采纳了 @Alpaca233114514 在 #396/#398 里 的 MOC-153 贡献:第三方切 GPT 报 `Instructions are required` 400 的根因诊断 (顶层 instructions 空)+ 注入非空 instructions 的核心思路。#419 已 squash-merge 进 main、无法 amend,故在此 follow-up commit 以 Co-Authored-By 形式署名。 Co-authored-by: ALPACA LI <alpaca8570@outlook.com>
Fix CSP compatibility and implement MOC126 and MOC-153 updates