li
865128998c
fix(billing): 合并 hosted image_generation 工具的图片 token 到 /responses 计费
/v1/responses 端点使用 hosted image_generation 工具时,上游在
response.tool_usage.image_gen 返回图片 token 用量,但
extractOpenAIUsageFromJSONBytes 只读 response.usage,导致
image_output_tokens 和 image_output_cost 始终为 0。
在 extractOpenAIUsageFromJSONBytes 提取完 base usage 后,合并
tool_usage.image_gen 的 image tokens 维度(仅补充不覆盖),
覆盖 SSE 流式、非流式和 WebSocket 三条路径。
2026-07-20 16:29:12 +08:00
..
2026-07-20 09:41:02 +08:00
2026-07-03 17:22:49 +00:00
2026-07-20 15:30:26 +08:00
2026-07-06 15:00:29 +08:00
2026-07-20 11:47:13 +08:00
2026-07-20 10:26:15 +08:00
2026-07-19 01:03:41 -07:00
2026-07-20 15:30:41 +08:00
2026-07-20 16:29:12 +08:00
2026-07-03 10:29:33 +08:00
2026-07-03 21:02:31 +08:00
2026-07-18 00:24:06 +08:00