teknium1
170d616ca6
fix(anthropic): merged user turns keep each turn as its own text block
...
_concat_content joined two string user contents into one "a\nb" string when
_merge_consecutive_roles collapsed adjacent user turns for the Anthropic
Messages wire. For a MoA aggregator on that wire, iteration 1 of a turn ends
[user(task), user(guidance)] and was sent as user("task\n<guidance>"), while
iteration 2 replays user("task") alone, so the prompt-cache prefix diverged
at the first user block and the #112358 collapse persisted there (the
first-pass fix in #113175 only covered the OpenAI-compatible wire).
Merged turns are now always a block list with each side's blocks intact (a
string becomes one text block), matching what the list+list and list+str
shapes already did. The task block is byte-identical to the standalone turn
later iterations replay, a cache_control marker on it stays put, and the
guidance follows as its own text block. Assistant merges are unaffected
(assistant content is already a block list).
Bedrock Converse and native Gemini already merge at block/part granularity,
so the docs' Anthropic/Converse/Gemini fold caveat is replaced with the
accurate statement and the byte-identical-extension claim no longer needs
the OpenAI-compatible scope.
Part of #112358
2026-09-17 08:46:05 -07:00
..
2026-09-16 16:50:07 -07:00
2026-09-16 16:53:20 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 05:19:57 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:53:38 -07:00
2026-09-10 15:13:02 -04:00
2026-09-13 09:18:02 -07:00
2026-09-17 08:46:05 -07:00
2026-09-11 13:06:16 +05:30
2026-09-13 09:18:02 -07:00
2026-09-16 17:16:06 -07:00
2026-09-16 14:34:59 -07:00
2026-09-07 08:07:26 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:07:26 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 10:32:01 +05:30
2026-09-14 20:35:28 +05:30
2026-09-13 09:18:02 -07:00
2026-09-07 21:43:54 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 16:21:36 -07:00
2026-09-09 16:21:36 -07:00
2026-09-15 04:49:01 -07:00
2026-09-10 09:11:00 -07:00
2026-09-11 13:06:16 +05:30
2026-09-13 09:18:02 -07:00
2026-09-16 16:51:06 -07:00
2026-09-16 16:51:06 -07:00
2026-09-09 14:06:12 -07:00
2026-09-15 18:23:55 -07:00
2026-09-17 08:45:46 -07:00
2026-09-16 11:57:56 +05:30
2026-09-16 17:01:52 -07:00
2026-09-10 18:11:25 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 06:02:22 -07:00
2026-09-07 07:06:58 -07:00
2026-09-14 06:55:54 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 12:19:13 +05:30
2026-09-14 05:25:01 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:45:33 -07:00
2026-09-11 01:37:22 -07:00
2026-09-11 03:45:33 +05:30
2026-09-13 09:18:02 -07:00
2026-09-06 13:21:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:08:04 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 19:23:53 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 22:30:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:48:35 -07:00
2026-09-07 08:09:57 -07:00
2026-09-16 14:23:55 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:49:47 -07:00
2026-09-15 19:23:53 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 05:24:15 -07:00
2026-09-16 17:45:01 -07:00
2026-09-16 17:16:06 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:12:33 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-09 09:21:39 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:22:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:12:33 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:54:37 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-06 14:19:42 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:40:03 -07:00
2026-09-13 09:18:02 -07:00
2026-09-06 13:21:17 -07:00
2026-09-08 02:27:01 +05:30
2026-09-06 13:21:17 -07:00
2026-09-07 05:59:08 -07:00
2026-09-16 16:59:43 -07:00
2026-09-07 08:13:01 -07:00
2026-09-07 00:49:51 -07:00
2026-09-16 17:17:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:59:03 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:20:26 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 19:17:06 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 22:47:33 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 14:34:59 -07:00
2026-09-07 08:06:48 -07:00
2026-09-16 14:34:59 -07:00
2026-09-16 17:16:06 -07:00
2026-09-15 18:39:31 -07:00
2026-09-16 17:24:07 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 03:45:33 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:48:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:58:22 -07:00
2026-09-07 22:47:33 +05:30
2026-09-09 21:16:48 +05:30
2026-09-13 09:18:02 -07:00
2026-09-07 08:19:32 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-10 13:23:00 +02:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:08:02 -07:00
2026-09-15 18:42:10 -07:00
2026-09-12 08:23:42 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:21:57 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 11:03:39 +05:30
2026-09-17 12:28:25 +05:30
2026-09-15 20:44:42 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 17:18:10 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 14:24:30 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 06:07:16 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 06:15:43 -07:00
2026-09-13 05:09:06 -07:00
2026-09-15 18:22:12 -07:00
2026-09-15 06:20:15 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:10:36 -07:00
2026-09-15 03:54:01 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 06:44:54 -07:00
2026-09-12 21:10:02 -07:00
2026-09-07 21:10:50 -07:00
2026-09-10 01:08:18 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 15:26:46 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-17 13:52:36 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:09:50 -07:00
2026-09-16 17:09:30 -07:00
2026-09-06 14:19:42 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 21:13:23 -07:00
2026-09-11 15:26:46 -07:00
2026-09-07 06:05:13 -07:00
2026-09-12 08:23:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:48:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:28:43 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:28:43 -07:00
2026-09-15 18:41:19 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 11:54:49 -07:00
2026-09-15 05:38:31 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:27:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:22:57 -07:00
2026-09-06 13:25:48 -07:00
2026-09-06 13:25:48 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 22:30:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-17 08:46:05 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 06:15:43 -07:00
2026-09-13 09:18:02 -07:00
2026-09-17 17:10:58 +05:30
2026-09-13 09:18:02 -07:00
2026-09-16 17:09:50 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 06:18:31 -07:00
2026-09-11 15:26:46 -07:00
2026-09-12 01:35:05 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 16:30:24 -07:00
2026-09-07 05:24:15 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:16:06 -07:00
2026-09-17 12:28:25 +05:30
2026-09-16 11:06:06 -07:00
2026-09-15 20:44:42 +05:30
2026-09-15 04:17:31 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 19:10:00 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:51:15 -07:00
2026-09-16 17:22:17 -07:00
2026-09-17 13:52:36 +05:30
2026-09-11 15:26:46 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:54:58 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 04:38:59 -07:00
2026-09-13 14:46:42 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 11:06:06 -07:00
2026-09-09 12:42:02 +05:30
2026-09-15 04:13:13 -07:00
2026-09-16 21:39:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 09:59:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:16:06 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:23:44 -07:00
2026-09-16 17:17:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:07:21 -07:00
2026-09-12 13:44:52 -07:00
2026-09-15 05:42:35 -07:00
2026-09-13 05:09:43 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:06:48 -07:00
2026-09-16 17:21:57 -07:00
2026-09-07 08:24:54 -07:00
2026-09-10 02:44:26 -07:00
2026-09-15 18:59:55 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 12:19:13 +05:30
2026-09-10 13:23:24 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-06 14:04:05 -07:00
2026-09-13 19:23:09 +05:30
2026-09-16 17:08:02 -07:00
2026-09-16 17:16:06 -07:00
2026-09-16 14:23:20 -07:00
2026-09-13 05:09:43 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-08 04:38:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:39:07 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:18:08 -07:00
2026-09-09 17:04:30 +05:30
2026-09-13 09:18:02 -07:00
2026-09-17 20:56:27 +05:30
2026-09-13 05:32:38 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 00:41:14 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-07 08:08:41 -07:00
2026-09-16 17:50:21 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 07:54:57 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:25:36 -07:00
2026-09-12 08:25:59 -07:00
2026-09-15 03:34:20 -07:00
2026-09-16 21:15:30 +05:30
2026-09-13 09:18:02 -07:00
2026-09-06 13:08:31 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 21:07:46 -07:00
2026-09-15 18:42:10 -07:00
2026-09-16 17:10:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:21:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 12:46:27 +05:30
2026-09-07 05:24:15 -07:00
2026-09-13 21:27:35 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:08:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:46:36 -07:00
2026-09-15 18:19:26 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 20:35:28 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 10:31:26 +05:30
2026-09-16 17:48:48 -07:00
2026-09-16 06:27:23 -05:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 14:46:42 -07:00
2026-09-13 09:18:02 -07:00
2026-09-17 08:45:08 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:09:43 -07:00
2026-09-15 18:23:07 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:08:25 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:25:14 -07:00
2026-09-13 21:13:23 -07:00
2026-09-16 17:10:13 -07:00
2026-09-10 10:27:07 -07:00
2026-09-06 13:21:17 -07:00
2026-09-16 21:15:30 +05:30
2026-09-13 09:18:02 -07:00
2026-09-15 04:18:34 -07:00
2026-09-15 04:12:13 -07:00
2026-09-10 13:23:00 +02:00
2026-09-15 04:12:13 -07:00
2026-09-15 18:21:44 -07:00
2026-09-16 10:43:48 -07:00
2026-09-16 17:48:17 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 20:44:42 +05:30
2026-09-06 13:52:15 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:45:33 -07:00
2026-09-06 13:21:17 -07:00
2026-09-10 02:44:26 -07:00
2026-09-15 19:10:00 -07:00
2026-09-13 09:18:02 -07:00
2026-09-09 02:35:41 -07:00
2026-09-09 02:35:41 -07:00
2026-09-09 02:35:41 -07:00
2026-09-07 08:08:41 -07:00
2026-09-09 02:35:41 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 14:46:38 -07:00
2026-09-15 04:48:20 -07:00
2026-09-13 09:18:02 -07:00
2026-09-17 12:28:25 +05:30
2026-09-17 12:39:05 +05:30