SPHINX998 and Claude Opus 5.5
b6a157c19c
fix(openai): account image input usage on WS passthrough
...
The WS v2 passthrough relay only read output_tokens_details.image_tokens,
so image generation over WebSocket billed image input tokens at the text
input rate and ignored the hosted response.tool_usage.image_gen breakdown
that the HTTP Responses path already merges (extractOpenAIUsageFromJSONBytes
+ mergeHostedImageGenToolUsage).
The relay now reads image input tokens from input_tokens_details or
prompt_tokens_details, fills missing image input/output counters from
response.tool_usage.image_gen (usage values keep precedence), and carries
ImageInputTokens per turn and in the session aggregate into the
OpenAIForwardResult used for billing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-01 22:31:39 +08:00
..
2026-10-01 22:31:39 +08:00
2026-09-27 14:56:38 +08:00
2026-09-27 14:56:38 +08:00
2026-09-27 12:12:25 +08:00
2026-09-27 12:12:25 +08:00
2026-09-23 01:43:06 +08:00
2026-09-23 13:35:44 +08:00
2026-09-23 13:35:44 +08:00
2026-09-28 14:48:42 +08:00
2026-09-20 15:47:53 +08:00
2026-09-28 14:48:42 +08:00
2026-09-23 10:07:02 +08:00
2026-09-23 15:26:35 +08:00
2026-09-23 15:26:35 +08:00
2026-09-25 09:12:09 +08:00
2026-09-23 01:24:59 +08:00
2026-09-23 01:24:59 +08:00
2026-09-23 15:27:53 +08:00
2026-09-26 17:13:10 +08:00
2026-09-28 12:15:27 +08:00
2026-09-28 12:15:27 +08:00
2026-09-26 17:13:10 +08:00
2026-09-26 17:13:10 +08:00
2026-09-21 20:13:44 +08:00
2026-09-26 17:13:10 +08:00
2026-09-21 20:13:44 +08:00
2026-09-21 20:13:44 +08:00
2026-09-30 13:44:02 +08:00
2026-09-30 13:44:02 +08:00
2026-09-30 13:44:02 +08:00
2026-09-30 13:44:02 +08:00
2026-09-30 13:44:02 +08:00
2026-09-30 13:44:02 +08:00
2026-09-23 00:44:29 +08:00
2026-09-23 11:18:08 +08:00
2026-09-23 11:18:08 +08:00
2026-09-29 04:55:07 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 08:17:48 +08:00
2026-09-23 08:17:48 +08:00
2026-09-28 17:08:27 -04:00
2026-09-28 17:08:13 -04:00
2026-09-29 11:50:08 -07:00
2026-09-29 11:50:08 -07:00
2026-09-20 16:41:49 +08:00
2026-09-20 16:41:49 +08:00
2026-09-20 16:41:49 +08:00
2026-09-20 16:41:49 +08:00
2026-09-20 16:41:49 +08:00
2026-09-20 16:41:49 +08:00
2026-09-23 14:39:29 +08:00
2026-09-23 14:39:29 +08:00
2026-09-28 20:59:39 -04:00
2026-09-29 11:41:33 -04:00
2026-09-29 14:21:10 -04:00
2026-09-29 14:21:10 -04:00
2026-09-26 17:13:10 +08:00
2026-09-22 19:07:04 +08:00
2026-09-22 19:07:04 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-28 14:48:42 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 05:20:04 +08:00
2026-09-29 04:55:07 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 13:35:44 +08:00
2026-09-23 13:35:44 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 13:35:44 +08:00
2026-09-20 16:41:49 +08:00
2026-09-29 04:55:07 +08:00
2026-09-21 12:58:56 +08:00
2026-09-29 15:44:10 +08:00
2026-09-29 15:44:10 +08:00
2026-09-29 15:44:10 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 11:51:06 +08:00
2026-09-21 19:58:02 +08:00
2026-09-22 16:54:36 +08:00
2026-09-20 16:41:49 +08:00
2026-09-29 04:55:07 +08:00
2026-09-29 05:20:04 +08:00
2026-09-22 16:54:36 +08:00
2026-09-23 11:51:06 +08:00
2026-09-23 08:17:48 +08:00
2026-09-29 04:55:07 +08:00
2026-09-28 10:10:47 +08:00
2026-09-29 15:00:16 +08:00
2026-09-29 15:00:16 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 15:26:35 +08:00
2026-09-26 17:13:10 +08:00
2026-09-23 08:17:48 +08:00
2026-09-28 16:14:43 -04:00
2026-09-22 18:12:19 +08:00
2026-09-22 11:31:31 +08:00
2026-09-22 11:31:31 +08:00
2026-09-22 20:30:37 +08:00
2026-09-21 19:58:02 +08:00
2026-09-21 19:58:02 +08:00
2026-09-21 14:13:57 +08:00
2026-09-26 17:13:10 +08:00
2026-10-01 12:17:27 +08:00
2026-10-01 12:17:27 +08:00
2026-10-01 12:17:27 +08:00
2026-09-25 09:12:09 +08:00
2026-09-28 10:49:01 +08:00
2026-09-23 13:35:44 +08:00
2026-09-23 13:35:44 +08:00
2026-09-23 11:28:41 +08:00
2026-09-23 11:28:41 +08:00
2026-09-24 15:46:14 +08:00
2026-09-24 15:46:14 +08:00
2026-09-23 15:26:35 +08:00
2026-09-23 12:01:40 +08:00
2026-09-29 15:43:52 +08:00
2026-09-23 15:29:11 +08:00
2026-09-24 15:54:15 +08:00
2026-09-24 15:54:15 +08:00
2026-09-24 15:54:15 +08:00
2026-09-24 15:50:00 +08:00
2026-09-24 15:50:00 +08:00
2026-09-20 19:27:47 +08:00
2026-09-20 19:27:47 +08:00
2026-09-22 14:50:29 +08:00
2026-09-29 11:50:08 -07:00
2026-09-29 11:50:08 -07:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:50:08 -07:00
2026-09-29 11:49:26 -07:00
2026-09-20 19:27:47 +08:00
2026-09-20 19:27:47 +08:00
2026-09-23 16:48:15 +08:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:49:26 -07:00
2026-09-21 12:58:56 +08:00
2026-09-22 15:51:51 +08:00
2026-09-29 15:44:10 +08:00
2026-09-20 16:41:49 +08:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:49:26 -07:00
2026-09-23 15:27:53 +08:00
2026-09-21 19:58:02 +08:00
2026-09-23 18:32:49 -04:00
2026-09-27 09:57:51 +08:00
2026-09-22 10:30:01 +08:00
2026-10-01 12:17:27 +08:00
2026-09-29 04:55:07 +08:00
2026-09-23 16:48:15 +08:00
2026-09-29 11:49:26 -07:00
2026-09-29 11:49:26 -07:00
2026-09-22 22:00:51 +08:00
2026-09-26 20:11:03 +09:00
2026-09-29 11:49:26 -07:00
2026-09-23 10:03:00 +08:00
2026-09-29 15:44:10 +08:00
2026-09-29 11:49:26 -07:00
2026-09-29 15:43:52 +08:00
2026-09-20 16:41:49 +08:00
2026-09-27 09:57:51 +08:00
2026-09-27 09:57:51 +08:00
2026-09-28 09:55:19 +08:00
2026-09-21 10:23:10 +08:00
2026-09-21 10:23:10 +08:00
2026-09-29 15:00:16 +08:00
2026-09-23 10:07:02 +08:00
2026-09-20 19:28:13 +08:00
2026-09-29 11:49:26 -07:00
2026-09-22 15:51:51 +08:00
2026-09-22 15:51:51 +08:00
2026-09-23 11:27:49 +08:00
2026-09-25 12:17:11 +08:00
2026-09-25 12:17:11 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-20 15:47:53 +08:00
2026-09-22 19:47:12 +08:00
2026-09-22 19:47:12 +08:00
2026-09-22 20:49:24 +08:00
2026-09-22 20:49:24 +08:00
2026-09-26 17:13:10 +08:00
2026-09-20 16:37:07 +08:00
2026-09-26 07:45:10 -04:00
2026-09-29 15:43:52 +08:00
2026-09-26 07:45:10 -04:00
2026-09-22 22:00:51 +08:00
2026-10-01 22:31:39 +08:00
2026-10-01 22:31:39 +08:00
2026-09-23 15:26:44 +08:00
2026-09-23 15:26:44 +08:00
2026-09-23 15:26:44 +08:00
2026-09-23 15:26:44 +08:00
2026-09-23 01:24:59 +08:00
2026-09-29 11:49:26 -07:00
2026-09-23 10:05:42 +08:00
2026-09-22 15:51:51 +08:00
2026-09-23 10:05:42 +08:00
2026-09-20 16:41:49 +08:00
2026-09-22 18:11:46 +08:00
2026-09-22 15:03:05 +08:00
2026-09-22 15:03:06 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 11:50:08 -07:00
2026-09-29 11:50:08 -07:00
2026-09-23 14:39:29 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-09-29 01:50:21 +08:00
2026-10-01 12:17:27 +08:00
2026-09-23 13:35:44 +08:00
2026-09-22 10:30:01 +08:00
2026-09-29 11:41:33 -04:00