viccy and OmX
2b5944fd6c
防止 WebSocket 生图结果停留在进行中状态
...
HTTP/SSE 已会在终态事件中修正带结果的图片 item,但 WebSocket 下行路径缺少同一处理。现在四条文本帧出口复用现有归一化,并原样保留 result 数据。
Constraint: 仅修改终态事件中带非空 result 的 image_generation_call
Rejected: 解码并改写二进制帧 | 二进制帧不属于 JSON 事件契约
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: 保持 HTTP、SSE 与 WebSocket 的图片终态规则一致
Tested: 后端 unit、integration、go vet
Not-tested: 真实 Codex WebSocket 生图会话
Co-authored-by: OmX <omx@oh-my-codex.dev >
2026-07-16 17:11:00 +08:00
xiaohei210509
ade5944201
fix(openai): preserve Codex image function tools
2026-07-15 15:10:43 +08:00
jjaw
78e09a0f1a
复用请求级图片生成意图判断
2026-07-15 04:20:11 +08:00
chensunlai
2f715baf05
fix(openai): preserve client image tools in Responses Lite
2026-07-14 05:19:13 +00:00
Wesley Liddick
9717699367
Merge pull request #4218 from chensunlai/fix/openai-image-generation-final-status
...
fix(openai): complete streamed image generation results
2026-07-14 11:00:40 +08:00
chensunlai
f2ca16577e
fix(openai): complete streamed image generation results
2026-07-13 21:24:53 +00:00
gebdalaoli-arch
b6bb74b6fa
fix(openai): avoid duplicate Codex image tool injection
2026-07-12 22:54:56 +08:00
Tassoi
d3a1835ed7
fix(image): strip Codex image_gen namespace declarations
2026-07-10 06:37:06 +00:00
Anderson
f385cdceb7
feat: add Codex image tool strip policy
2026-07-03 22:36:39 +08:00
seng1e
c797159bf5
fix(openai): skip Codex image bridge injections for /responses/compact
...
The Codex image_generation bridge block in Forward injects
tools:[image_generation] and tool_choice:"auto" (since #3498 ) into every
Codex request, including /responses/compact. The upstream compact endpoint
rejects tool_choice with 400 "Unknown parameter: 'tool_choice'", so every
remote compaction fails once the bridge is enabled. Guard the whole image
generation block with !isCompactRequest.
Fixes #3629
2026-07-02 11:09:50 +08:00
Hao Liu
e5f7836bf3
fix(openai): set tool_choice auto for Codex image bridge
2026-06-26 19:10:37 +08:00
DaydreamCoding and Claude Opus 4.8
b62b573f7f
feat(openai): cyber_policy 硬阻断全链路透传、审计与计费
...
上游对单次请求下发 error.code=cyber_policy 硬阻断时,网关在所有端点
(/v1/responses、/v1/chat/completions、/v1/messages、WebSocket)及流式/
非流式路径下,将该结果原样透传给客户端,绝不 failover、换号或同步拦截;
命中后异步完成审计与计费:
- 风控中心记录 cyber_policy 留痕并发送通知邮件,落库先于发信,SMTP 阻塞
不影响留痕
- ops 错误请求记录,状态码对齐客户端实际接收(流式 200 / 非流式 400)
- 用量明细标记 request_type=cyber,按上游真实 token 计费,HTTP 与
WebSocket 计费口径统一,零 token 命中不误扣
- 会话级自动屏蔽(管理员开关,默认关):命中的会话在可配 TTL 内本地拦截
不再发往上游,仅屏蔽该会话不影响同 Key 其他会话
- 封号计数排除开关:可选让 cyber 命中不计入自动封号,命中当次不判定且
历史行在违规计数中一并排除
WebSocket 多轮连接下 cyber 标记按 turn 生命周期管理,逐轮独立检测与记录;
透传的错误响应不被兜底逻辑追加内容污染。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-12 01:47:01 +08:00
Jlypx and Sisyphus
26043a8f29
fix(openai): gate Codex image bridge injection
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-05-07 00:10:20 +08:00
2ue
6faa344916
feat: add OpenAI image generation controls
2026-05-05 03:26:54 +08:00