hbentel
2673d5f5bd
fix(gemini): embed images in Gemini 3.x functionResponse.parts for multimodal tool results
...
_translate_tool_result_to_gemini called _coerce_content_to_text unconditionally,
silently dropping image_url parts from multimodal tool results (e.g. vision_analyze
responses). Gemini 3.x supports a functionResponse.parts field for embedding
inlineData images directly inside the function response; Gemini 2.x does not.
Thread is_gemini3 through _build_gemini_contents → _translate_tool_result_to_gemini
and gate image embedding on _gemini_major_version >= 3. Reuses the existing
_extract_multimodal_parts helper (no duplicate code). Non-3.x path unchanged.
Original PR #32352 by @hbentel, salvaged onto current main.
Co-authored-by: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com >
2026-08-27 21:07:21 +05:30
..
2026-08-25 01:48:43 +05:30
2026-08-23 02:14:35 -07:00
2026-08-26 10:10:11 -07:00
2026-08-26 10:10:11 -07:00
2026-08-14 21:54:56 -07:00
2026-08-14 21:27:05 -07:00
2026-08-15 00:34:29 -07:00
2026-08-18 20:34:46 -04:00
2026-08-20 12:29:11 -05:00
2026-08-23 02:54:30 -07:00
2026-08-16 19:53:07 -07:00
2026-08-27 04:37:36 -07:00
2026-08-24 20:11:18 -07:00
2026-08-26 10:10:11 -07:00
2026-08-16 10:27:52 -07:00
2026-08-22 19:30:10 -07:00
2026-08-22 19:30:10 -07:00
2026-08-16 01:55:00 -07:00
2026-08-14 21:54:56 -07:00
2026-08-14 13:56:58 -07:00
2026-08-20 20:20:23 -07:00
2026-08-15 01:04:19 -07:00
2026-08-15 01:04:19 -07:00
2026-08-24 11:25:04 -07:00
2026-08-24 21:46:05 -07:00
2026-08-26 12:58:35 +05:30
2026-08-23 19:02:30 -07:00
2026-08-24 11:25:04 -07:00
2026-08-15 03:16:21 -07:00
2026-08-23 18:27:07 -07:00
2026-08-26 21:38:20 -07:00
2026-08-23 18:27:07 -07:00
2026-08-27 12:42:38 +05:30
2026-08-17 18:15:46 +05:30
2026-08-26 07:16:04 -07:00
2026-08-23 15:03:29 +05:30
2026-08-23 18:27:07 -07:00
2026-08-26 07:16:04 -07:00
2026-08-14 01:08:13 -07:00
2026-08-26 07:16:04 -07:00
2026-08-24 04:14:26 +05:30
2026-08-16 06:31:46 -07:00
2026-08-23 20:01:18 -07:00
2026-08-14 21:54:56 -07:00
2026-08-22 04:20:48 +05:30
2026-08-16 22:06:41 -07:00
2026-08-25 00:31:14 -07:00
2026-08-23 20:01:18 -07:00
2026-08-14 16:37:36 -07:00
2026-08-27 17:22:02 +05:30
2026-08-16 22:06:08 -07:00
2026-08-15 01:04:19 -07:00
2026-08-23 20:02:07 -07:00
2026-08-23 18:43:12 -07:00
2026-08-27 21:07:21 +05:30
2026-08-16 02:01:41 -07:00
2026-08-23 17:47:50 -07:00
2026-08-23 18:25:19 -07:00
2026-08-23 13:34:32 +05:30
2026-08-19 22:41:05 -07:00
2026-08-24 21:45:30 -07:00
2026-08-15 01:04:19 -07:00
2026-08-20 00:03:50 +05:30
2026-08-17 12:58:51 -07:00
2026-08-17 12:58:51 -07:00
2026-08-14 22:04:16 -07:00
2026-08-14 21:36:41 -07:00
2026-08-19 13:56:11 -05:00
2026-08-24 03:20:57 -07:00
2026-08-23 02:14:35 -07:00
2026-08-21 00:24:32 -07:00
2026-08-15 00:33:01 -07:00
2026-08-24 20:25:10 -07:00
2026-08-25 12:59:29 -07:00
2026-08-18 02:12:30 -07:00
2026-08-25 03:55:55 -07:00
2026-08-23 17:47:50 -07:00
2026-08-25 12:59:29 -07:00
2026-08-17 14:06:16 -07:00
2026-08-25 12:59:29 -07:00
2026-08-15 11:09:56 +05:30
2026-08-21 12:23:47 +05:30
2026-08-26 10:10:11 -07:00
2026-08-19 22:56:04 -07:00
2026-08-19 16:04:22 -07:00
2026-08-27 03:24:20 -07:00
2026-08-22 16:47:39 +02:00
2026-08-19 22:11:13 -04:00
2026-08-19 08:52:03 -07:00
2026-08-19 08:52:03 -07:00
2026-08-15 00:33:01 -07:00
2026-08-19 09:14:12 -07:00
2026-08-19 08:52:01 -07:00
2026-08-16 01:55:51 -07:00
2026-08-23 19:04:37 -07:00
2026-08-19 16:32:17 -07:00
2026-08-20 11:36:54 +05:30
2026-08-23 20:00:30 -07:00
2026-08-21 13:21:46 +10:00
2026-08-16 11:32:02 -07:00
2026-08-23 13:34:32 +05:30
2026-08-15 23:03:52 -07:00
2026-08-19 19:41:42 -07:00
2026-08-15 02:45:50 -07:00
2026-08-16 06:24:56 -07:00
2026-08-14 21:54:56 -07:00
2026-08-21 13:24:43 +05:30
2026-08-14 14:15:42 -07:00
2026-08-25 02:45:10 -07:00
2026-08-18 20:34:46 -04:00
2026-08-23 18:25:19 -07:00
2026-08-27 16:13:45 +05:30
2026-08-16 22:07:43 -07:00
2026-08-25 12:59:29 -07:00
2026-08-24 20:10:44 -07:00
2026-08-15 00:33:01 -07:00
2026-08-16 22:10:02 -07:00
2026-08-23 18:24:43 -07:00
2026-08-14 21:41:26 -07:00
2026-08-25 01:34:56 +05:30
2026-08-15 01:04:19 -07:00
2026-08-15 01:04:19 -07:00
2026-08-16 01:56:18 -07:00
2026-08-20 12:35:20 +05:30
2026-08-24 03:23:07 -07:00
2026-08-16 00:14:58 -07:00
2026-08-22 16:07:12 +05:30