kshitij
223f703012
fix: close provider-anthropic MiniMax proxy bypass + rework cache observability
...
Follow-up fixes on top of the salvaged #83678 commit:
1. Hoist the MiniMax-M3 marker exclusion ABOVE the native-Anthropic
early return. provider="anthropic" pointed at a MiniMax /anthropic
proxy is a supported override (_anthropic_base_url_override_ok), and
the is_native_anthropic branch matched on provider alone — returning
(True, True) before the M3 exclusion was reached. Two regression
tests pin the proxy route (M3 off, M2.7 still on).
2. Reuse the existing _model_name_suggests_minimax_m3() helper from
agent/model_metadata.py instead of a second inline substring copy.
3. Drop the debug kwarg on normalize_usage() — it had zero production
callers and duplicated standard logging level gating. The
cache-observability line is now a plain logger.debug scoped to
MiniMax providers on the Anthropic wire only, so the "+128 floor"
note can no longer appear for native Anthropic where it is false.
Tests updated accordingly (MiniMax logs, native Anthropic does not).
2026-08-12 13:58:26 +05:30
..
2026-08-01 21:17:51 -04:00
2026-08-08 18:11:02 -07:00
2026-07-05 13:42:46 -07:00
2026-07-24 11:45:57 -07:00
2026-08-02 00:11:50 -07:00
2026-08-10 12:43:46 -07:00
2026-08-07 10:11:05 -07:00
2026-05-28 00:20:11 -07:00
2026-07-22 10:58:22 -07:00
2026-08-09 16:13:52 +05:30
2026-08-12 13:58:26 +05:30
2026-08-11 13:25:37 +05:30
2026-07-18 20:01:55 +05:30
2026-07-16 04:23:12 -07:00
2026-08-11 23:36:47 -05:00
2026-08-02 10:02:33 -07:00
2026-07-26 23:41:54 -07:00
2026-08-09 16:13:52 +05:30
2026-07-21 13:54:11 -05:00
2026-07-23 11:45:07 -07:00
2026-07-22 18:08:59 -05:00
2026-07-29 11:53:39 -07:00
2026-07-29 11:53:39 -07:00
2026-07-05 14:00:20 -07:00
2026-08-10 10:45:44 -07:00
2026-05-29 04:22:27 -07:00
2026-08-10 10:01:44 +05:30
2026-08-08 11:24:45 -07:00
2026-08-12 12:42:39 +05:30
2026-07-29 15:28:15 -07:00
2026-07-26 18:06:21 -07:00
2026-08-09 16:20:48 +05:30
2026-08-08 23:09:45 +05:30
2026-08-08 05:44:18 -07:00
2026-08-09 22:29:39 +05:30
2026-08-10 10:01:44 +05:30
2026-07-24 17:10:39 -07:00
2026-07-02 13:17:41 -07:00
2026-08-08 19:17:02 -07:00
2026-08-08 12:32:23 -07:00
2026-07-28 21:36:23 +00:00
2026-08-08 15:10:35 +05:30
2026-08-03 18:21:17 +05:30
2026-08-06 03:16:26 +05:30
2026-08-10 10:45:44 -07:00
2026-08-07 19:47:40 +05:30
2026-07-17 13:49:12 -07:00
2026-08-08 05:21:09 -07:00
2026-07-22 04:40:07 -07:00
2026-08-05 17:21:01 -07:00
2026-07-26 20:59:16 -07:00
2026-07-29 15:28:15 -07:00
2026-08-08 14:49:28 -07:00
2026-07-29 15:28:15 -07:00
2026-07-23 08:32:09 -07:00
2026-08-03 18:45:43 +05:30
2026-08-02 22:15:20 +05:30
2026-07-26 12:54:45 -07:00
2026-05-28 00:20:11 -07:00
2026-07-14 16:47:33 +05:30
2026-08-08 05:09:43 -07:00
2026-07-29 11:53:39 -07:00
2026-07-01 16:25:48 -05:00
2026-06-30 15:16:21 -05:00
2026-07-16 07:57:51 -07:00
2026-07-23 08:19:14 -07:00
2026-05-11 16:49:13 -07:00
2026-07-24 13:00:53 +05:30
2026-08-03 20:35:47 +05:30
2026-06-19 15:23:41 +08:00
2026-08-07 16:57:11 +05:30
2026-08-03 22:43:15 +05:30
2026-07-01 04:07:46 -07:00
2026-08-09 01:51:12 -07:00
2026-07-29 19:48:37 -07:00
2026-07-20 11:05:52 -07:00
2026-08-08 14:09:41 -07:00
2026-07-24 17:10:39 -07:00
2026-07-22 12:10:58 -05:00
2026-06-23 08:01:50 +00:00
2026-08-02 15:01:11 -07:00
2026-07-29 15:28:15 -07:00
2026-07-16 01:13:43 -07:00
2026-07-05 03:14:55 -07:00
2026-08-12 01:15:17 -07:00
2026-08-09 15:25:12 +05:30
2026-08-09 15:25:12 +05:30
2026-07-10 05:41:59 -05:00
2026-08-06 22:02:37 -05:00
2026-08-12 08:21:09 +00:00
2026-08-07 17:50:03 +05:30
2026-08-08 23:46:17 -07:00
2026-08-08 23:46:17 -07:00
2026-08-08 23:46:17 -07:00
2026-07-19 08:25:35 +05:30
2026-07-29 10:13:50 -07:00
2026-07-16 04:32:23 -07:00
2026-08-02 09:59:52 -07:00
2026-08-02 16:16:36 -07:00
2026-08-08 12:32:23 -07:00
2026-07-29 12:20:34 -07:00
2026-08-09 15:25:12 +05:30
2026-07-29 15:28:15 -07:00
2026-08-06 03:16:26 +05:30
2026-08-08 15:10:24 +05:30
2026-07-02 04:51:56 +05:30
2026-05-28 04:53:27 -07:00
2026-07-17 18:31:09 +00:00
2026-08-02 22:15:20 +05:30
2026-08-03 20:43:34 +05:30
2026-07-22 08:11:09 +05:30
2026-08-08 13:57:44 +05:30
2026-07-16 01:07:29 +05:30
2026-06-25 19:00:48 -07:00
2026-08-06 23:08:23 -05:00
2026-08-09 04:33:58 -05:00
2026-08-03 22:53:32 +05:30
2026-08-08 12:17:50 -05:00
2026-07-26 21:27:45 -07:00
2026-07-11 05:41:58 -07:00
2026-07-24 11:45:57 -07:00
2026-05-25 01:41:19 -07:00
2026-07-14 02:59:39 +05:30
2026-05-24 18:04:54 -07:00
2026-07-14 02:59:39 +05:30
2026-08-09 04:33:58 -05:00
2026-08-08 12:31:19 -07:00
2026-08-08 11:24:45 -07:00
2026-07-26 17:47:51 -07:00
2026-08-12 13:58:26 +05:30
2026-08-07 10:11:05 -07:00
2026-08-12 01:15:25 -07:00
2026-06-30 00:59:29 -05:00
2026-07-02 06:07:56 +05:30
2026-08-08 14:49:28 -07:00
2026-07-29 15:28:15 -07:00
2026-07-06 02:42:24 -07:00
2026-07-29 15:28:15 -07:00