Drexuxux
487574c5b6
fix(pricing): strip apac./au. Bedrock region prefixes so cost isn't unknown
...
_normalize_bedrock_model_name stripped ("us.", "global.", "eu.", "ap.",
"jp.") before the pricing lookup, but AWS Bedrock's Asia-Pacific
cross-region inference profiles are prefixed "apac." (and Australia
"au."), not "ap.". A bare "ap." never matches an "apac.*" id
(str.startswith stops at the 'a' where "ap." expects '.'), so
"apac.anthropic.claude-*" and "au.anthropic.claude-*" fell through with
the prefix intact, missed the bare "anthropic.claude-*" pricing key, and
every Asia-Pacific / Australia Bedrock session priced as "unknown" — no
cost estimate or tracking for two whole geographies, while us./eu./global.
worked.
Add "apac." and "au." to the strip list (mirrors the same fix landing in
bedrock_adapter.is_anthropic_bedrock_model via #46297 , which covers the
prompt-caching capability gate but not this duplicated cost-lookup copy).
Extends the existing cross-region pricing test to cover apac./au.; without
the fix it fails with scoped == None for "apac.".
2026-07-20 05:38:45 -07:00
..
2026-07-07 04:09:35 -07:00
2026-07-05 13:42:46 -07:00
2026-07-06 04:58:07 -07:00
2026-07-19 08:25:35 +05:30
2026-07-18 14:30:24 +05:30
2026-07-17 06:49:23 -07:00
2026-07-19 01:09:29 -07:00
2026-07-20 02:25:44 -07:00
2026-07-18 20:01:55 +05:30
2026-07-16 04:23:12 -07:00
2026-07-18 19:03:51 -04:00
2026-07-14 17:19:46 +05:30
2026-07-20 05:38:45 -07:00
2026-07-18 14:30:24 +05:30
2026-07-18 14:30:24 +05:30
2026-07-05 14:00:20 -07:00
2026-05-29 04:22:27 -07:00
2026-07-20 13:31:02 +05:30
2026-07-15 09:47:37 -07:00
2026-07-17 13:44:12 -07:00
2026-07-09 20:03:11 -07:00
2026-06-29 09:18:10 -04:00
2026-07-20 02:25:57 -07:00
2026-07-20 02:25:57 -07:00
2026-07-01 02:43:49 -07:00
2026-07-20 02:25:57 -07:00
2026-07-19 19:54:31 -05:00
2026-07-14 17:09:40 +05:30
2026-07-02 13:17:41 -07:00
2026-07-17 15:01:54 -04:00
2026-07-02 13:17:41 -07:00
2026-07-18 14:30:24 +05:30
2026-07-18 02:31:20 -07:00
2026-07-10 18:32:32 +05:30
2026-07-18 12:28:59 -07:00
2026-07-18 12:54:58 -07:00
2026-07-17 13:49:12 -07:00
2026-07-17 04:54:34 -07:00
2026-07-13 22:26:19 -07:00
2026-07-17 04:54:06 -07:00
2026-06-03 12:00:27 -07:00
2026-06-18 22:13:07 -07:00
2026-07-17 09:08:30 -07:00
2026-07-16 05:39:33 -07:00
2026-07-14 16:47:33 +05:30
2026-06-30 16:56:01 -07:00
2026-07-05 00:59:35 -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-16 14:34:03 +05:30
2026-07-17 04:55:58 -07:00
2026-06-21 12:03:46 -07:00
2026-06-19 15:23:41 +08:00
2026-06-25 12:24:34 -05:00
2026-07-16 01:13:43 -07:00
2026-07-01 04:07:46 -07:00
2026-07-20 02:25:44 -07:00
2026-06-13 05:51:41 -07:00
2026-07-05 23:00:34 +05:30
2026-06-23 08:01:50 +00:00
2026-07-16 01:13:43 -07:00
2026-07-05 03:14:55 -07:00
2026-07-18 13:59:35 -07:00
2026-07-09 14:35:14 +05:30
2026-07-10 05:41:59 -05:00
2026-07-20 02:25:44 -07:00
2026-07-20 02:25:57 -07:00
2026-07-19 08:25:35 +05:30
2026-07-07 11:57:01 +05:30
2026-07-16 04:32:23 -07:00
2026-06-19 07:34:15 -07:00
2026-07-07 02:32:32 -07:00
2026-07-05 14:48:11 -07:00
2026-07-14 16:41:21 +05:30
2026-06-28 05:28:45 -07:00
2026-07-17 04:52:02 -07:00
2026-06-13 21:14:32 -07:00
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-07-01 04:55:15 -07:00
2026-07-18 14:30:24 +05:30
2026-07-18 19:03:51 -04:00
2026-07-16 01:07:29 +05:30
2026-06-25 19:00:48 -07:00
2026-06-30 17:28:33 -07:00
2026-07-16 23:07:13 -07:00
2026-07-16 04:26:32 -07:00
2026-07-16 04:26:32 -07:00
2026-07-18 02:08:39 -07:00
2026-07-11 05:41:58 -07:00
2026-07-07 15:12:49 -07:00
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-07-19 14:58:59 +05:30
2026-07-19 07:27:10 +05:30
2026-07-01 05:25:33 -07:00
2026-07-20 05:38:45 -07:00
2026-06-24 23:03:45 -05:00
2026-07-12 04:32:52 -07:00
2026-06-30 00:59:29 -05:00
2026-07-02 06:07:56 +05:30
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-07-06 02:42:24 -07:00
2026-07-06 04:38:17 -07:00