Luis Pater
e0b4956242
fix(openai): ensure Responses usage includes token detail fields
...
- add shared `EnsureResponsesUsageDetails` helper to patch `usage` objects with:
- `output_tokens_details.reasoning_tokens = 0`
- `input_tokens_details.cached_tokens = 0`
- for both plain JSON and SSE `data:` frames, including multi-line frames
- apply the helper to OpenAI Response format outputs in non-stream and stream paths across executors/plugins so translated payloads consistently include required usage details
- update websocket/completion payload builders to emit default `usage` detail fields for prewarm/finish responses
Closes : #4985
2026-08-15 15:00:19 +08:00
..
2026-08-15 15:00:19 +08:00
2026-07-30 23:26:20 +08:00
2026-08-15 15:00:19 +08:00
2026-07-26 14:31:45 +08:00
2026-07-26 03:07:21 +08:00
2026-08-11 09:57:15 +08:00
2026-07-26 14:31:45 +08:00
2026-08-15 15:00:19 +08:00
2026-07-07 02:39:13 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-05 00:27:32 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 16:07:42 +08:00
2026-07-25 14:07:31 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-03 16:09:22 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-15 14:08:16 +08:00
2026-08-15 11:45:49 +08:00
2026-08-03 15:44:44 +08:00
2026-08-03 14:47:26 +08:00
2026-08-15 15:00:19 +08:00
2026-08-03 14:47:26 +08:00
2026-08-15 14:08:16 +08:00
2026-08-11 19:33:40 +08:00
2026-08-15 14:08:16 +08:00
2026-08-03 14:47:26 +08:00
2026-08-14 22:45:09 +08:00
2026-08-15 14:08:16 +08:00
2026-08-15 15:00:19 +08:00
2026-08-15 11:45:49 +08:00
2026-08-03 14:47:26 +08:00
2026-08-15 14:08:16 +08:00
2026-08-03 14:47:26 +08:00
2026-08-06 17:19:24 +08:00
2026-08-11 22:56:41 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 19:33:40 +08:00
2026-08-09 04:36:39 +08:00
2026-08-09 04:36:39 +08:00
2026-07-26 14:31:45 +08:00
2026-08-12 18:28:40 +08:00
2026-07-11 11:42:51 +08:00
2026-08-15 15:00:19 +08:00
2026-07-18 03:58:03 +08:00
2026-08-03 02:45:49 +08:00
2026-07-18 03:58:03 +08:00
2026-07-24 11:10:58 -07:00
2026-07-26 19:11:32 +08:00
2026-08-12 18:28:40 +08:00
2026-06-17 07:19:02 +08:00
2026-07-14 00:35:48 +08:00
2026-08-06 04:49:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-06 20:49:23 +08:00
2026-08-06 17:19:24 +08:00
2026-07-26 14:31:45 +08:00
2026-07-30 16:37:40 +08:00
2026-07-31 12:45:13 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-15 15:00:19 +08:00
2026-07-23 13:42:08 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-01 13:01:33 +08:00
2026-08-12 18:20:13 +08:00
2026-08-12 18:20:13 +08:00
2026-08-15 15:00:19 +08:00
2026-07-20 13:57:14 +08:00
2026-07-30 21:53:30 +08:00
2026-08-15 15:00:19 +08:00
2026-08-15 15:00:19 +08:00
2026-07-23 13:42:08 +08:00
2026-08-12 15:43:19 +08:00
2026-08-15 15:00:19 +08:00
2026-08-08 05:08:42 +08:00
2026-08-09 04:36:39 +08:00
2026-08-12 13:05:06 +08:00
2026-08-07 06:26:33 +08:00
2026-08-03 03:37:24 +08:00
2026-08-15 15:00:19 +08:00
2026-08-07 19:16:06 +08:00
2026-08-07 19:16:06 +08:00
2026-07-23 13:42:08 +08:00
2026-07-23 13:42:08 +08:00
2026-07-26 14:31:45 +08:00
2026-08-15 15:00:19 +08:00
2026-07-27 00:01:49 +08:00
2026-08-09 23:15:46 +08:00
2026-08-15 15:00:19 +08:00
2026-07-26 14:31:45 +08:00
2026-08-15 15:00:19 +08:00
2026-07-26 14:31:45 +08:00
2026-08-05 07:28:55 +08:00
2026-07-12 23:59:39 +08:00
2026-08-07 06:48:09 +08:00
2026-08-07 06:48:09 +08:00
2026-08-15 15:00:19 +08:00