YanzheL
1bff2292a6
fix: extract and log Claude output_config.effort in usage records
...
Claude's output_config.effort parameter (low/medium/high/max) was not
being extracted from requests or logged in the reasoning_effort column
of usage logs. Only the OpenAI path populated this field.
Changes:
- Extract output_config.effort in ParseGatewayRequest
- Add ReasoningEffort field to ForwardResult
- Populate reasoning_effort in both RecordUsage and RecordUsageWithLongContext
- Guard against overwriting service-set effort values in handler
- Update stale comments that described reasoning_effort as OpenAI-only
- Add unit tests for extraction, normalization, and persistence
2026-03-15 12:55:37 +08:00
..
2026-03-07 13:39:47 +08:00
2026-03-08 14:12:17 +08:00
2026-03-14 17:37:34 +08:00
2026-03-07 19:06:59 +08:00
2026-03-11 17:12:57 +08:00
2026-03-08 04:37:20 +08:00
2026-03-13 17:00:16 +08:00
2026-03-11 15:47:39 +08:00
2026-03-14 17:23:22 +08:00
2026-03-14 12:56:34 +08:00
2026-03-14 17:52:56 +08:00
2026-03-10 10:53:54 +08:00
2026-03-12 23:37:36 +08:00
2026-03-12 23:37:36 +08:00
2026-03-14 17:52:56 +08:00
2026-03-07 15:06:13 +08:00
2026-03-07 15:06:13 +08:00
2026-03-12 11:30:53 +08:00
2026-03-12 11:30:53 +08:00
2026-03-13 18:22:45 +08:00
2026-03-13 18:22:45 +08:00
2026-03-07 17:02:19 +08:00
2026-03-07 17:02:19 +08:00
2026-03-07 23:24:09 +08:00
2026-03-11 13:53:19 +08:00
2026-03-11 13:53:19 +08:00
2026-03-07 10:13:51 +08:00
2026-03-09 13:13:39 +08:00
2026-03-09 13:13:39 +08:00
2026-03-09 13:13:39 +08:00
2026-03-12 02:42:57 +03:00
2026-03-14 17:48:21 +08:00
2026-03-14 19:01:27 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 19:15:27 +08:00
2026-03-13 19:15:27 +08:00
2026-03-07 10:13:51 +08:00
2026-03-09 09:51:26 +08:00
2026-03-09 09:51:26 +08:00
2026-03-09 19:55:18 +08:00
2026-03-09 19:55:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-13 03:43:03 +08:00
2026-03-14 17:53:54 +08:00
2026-03-14 02:21:22 +08:00
2026-03-12 16:53:18 +08:00
2026-03-10 11:20:10 +08:00
2026-03-09 19:55:18 +08:00
2026-03-15 12:55:37 +08:00
2026-03-15 12:55:37 +08:00
2026-03-15 12:55:37 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-15 12:55:37 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 11:04:14 +08:00
2026-03-07 17:02:19 +08:00
2026-03-07 21:05:37 +08:00
2026-03-07 21:05:37 +08:00
2026-03-14 13:47:01 +08:00
2026-03-14 13:47:01 +08:00
2026-03-14 10:47:31 +08:00
2026-03-14 10:47:31 +08:00
2026-03-12 18:43:37 +08:00
2026-03-10 03:00:58 +08:00
2026-03-12 16:53:18 +08:00
2026-03-14 13:04:24 +08:00
2026-03-14 10:47:31 +08:00
2026-03-14 10:47:31 +08:00
2026-03-12 17:22:01 +08:00
2026-03-09 21:53:46 +08:00
2026-03-12 21:24:01 +08:00
2026-03-09 15:08:37 +08:00
2026-03-07 21:05:37 +08:00
2026-03-09 09:51:26 +08:00
2026-03-07 14:12:38 +08:00
2026-03-14 11:42:42 +08:00
2026-03-06 20:49:47 +08:00
2026-03-14 13:04:24 +08:00
2026-03-11 13:53:19 +08:00
2026-03-09 09:51:26 +08:00
2026-03-14 18:47:37 +08:00
2026-03-10 11:29:31 +08:00
2026-03-11 17:32:00 +08:00
2026-03-11 17:32:00 +08:00
2026-03-11 17:32:00 +08:00
2026-03-11 17:32:00 +08:00
2026-03-13 17:18:04 +08:00
2026-03-13 17:18:04 +08:00
2026-03-13 17:18:04 +08:00
2026-03-09 09:51:26 +08:00
2026-03-09 09:51:26 +08:00
2026-03-14 02:21:22 +08:00
2026-03-14 02:21:22 +08:00
2026-03-08 06:59:53 +08:00
2026-03-07 21:24:06 +08:00
2026-03-14 02:21:22 +08:00
2026-03-08 06:59:53 +08:00
2026-03-08 06:59:53 +08:00
2026-03-12 02:42:57 +03:00
2026-03-14 17:53:54 +08:00
2026-03-14 17:53:54 +08:00
2026-03-13 10:39:35 +08:00
2026-03-13 10:39:35 +08:00
2026-03-12 21:24:01 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 18:38:09 +08:00
2026-03-15 12:55:37 +08:00
2026-03-12 23:37:36 +08:00
2026-03-14 17:48:21 +08:00