Luis Pater
5dc428f392
fix(gemini): append trailing user turn for requests ending with model content
...
- Ensure Gemini, AI Studio, Vertex, and Antigravity requests end with a user turn to prevent upstream errors when trailing with model content.
- Preserve trailing turns that contain a function response and skip trailing adjustments for `countTokens` actions or Claude models.
- Introduce boundary normalization helpers to validate both leading and trailing turn roles.
Closes : #5358
2026-09-06 23:41:12 +08:00
..
2026-09-06 21:51:47 +08:00
2026-09-06 21:51:47 +08:00
2026-08-29 01:22:21 +08:00
2026-08-14 22:45:09 +08:00
2026-08-19 22:29:51 +08:00
2026-08-19 22:29:51 +08:00
2026-08-18 17:29:26 +08:00
2026-08-20 00:15:31 +08:00
2026-09-03 10:21:13 +08:00
2026-08-11 19:33:40 +08:00
2026-09-04 15:23:31 +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-09-03 10:21:13 +08:00
2026-09-03 10:21:13 +08:00
2026-09-04 15:23:31 +08:00
2026-09-04 15:23:31 +08:00
2026-08-15 15:00:19 +08:00
2026-08-14 22:45:09 +08:00
2026-08-14 22:45:09 +08:00
2026-08-14 22:45:09 +08:00
2026-08-27 17:32:07 +08:00
2026-08-27 17:32:07 +08:00
2026-08-29 01:22:21 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-09-04 15:23:31 +08:00
2026-08-03 14:47:26 +08:00
2026-08-12 01:04:22 +08:00
2026-08-12 01:04:22 +08:00
2026-08-11 16:07:42 +08:00
2026-09-03 20:21:24 +08:00
2026-08-24 17:15:37 +08:00
2026-08-24 17:15:37 +08:00
2026-07-26 03:07:21 +08:00
2026-07-26 03:07:21 +08:00
2026-09-06 23:41:12 +08:00
2026-09-06 23:41:12 +08:00
2026-08-30 14:51:08 +08:00
2026-08-29 12:50:45 +08:00
2026-08-29 12:50:45 +08:00
2026-08-29 12:50:46 +08:00
2026-08-29 12:50:45 +08:00
2026-07-31 13:28:14 +08:00
2026-09-03 13:10:30 +08:00
2026-08-03 03:37:24 +08:00
2026-08-03 03:37:24 +08:00
2026-09-04 15:23:31 +08:00
2026-08-05 18:25:40 +08:00
2026-08-30 14:51:08 +08:00
2026-08-31 08:41:08 +08:00
2026-08-29 01:22:21 +08:00
2026-08-15 15:00:19 +08:00
2026-08-15 15:00:19 +08:00
2026-07-31 12:45:13 +08:00
2026-07-31 12:45:13 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-09-06 10:45:32 +08:00
2026-09-06 10:45:32 +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-11 00:58:13 +08:00
2026-08-11 00:58:13 +08:00
2026-08-27 05:30:19 +08:00
2026-08-27 05:30:19 +08:00