From 7cbfdf83f5d1157a31e7d7580ad2c6c9469b3354 Mon Sep 17 00:00:00 2001 From: Shanujan Suresh <207912128+shanujans@users.noreply.github.com> Date: Thu, 6 Nov 2025 23:23:35 +0530 Subject: [PATCH 1/3] Import keras module in Google Gen AI SDK --- google/genai/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/google/genai/__init__.py b/google/genai/__init__.py index c3462ccbd..bba1400ad 100644 --- a/google/genai/__init__.py +++ b/google/genai/__init__.py @@ -16,6 +16,7 @@ """Google Gen AI SDK""" from . import types +from . import keras from . import version from .client import Client From 7a658b6248c021b093a4dcb5f11076634f12033d Mon Sep 17 00:00:00 2001 From: Shanujan Suresh <207912128+shanujans@users.noreply.github.com> Date: Fri, 5 Dec 2025 18:23:13 +0530 Subject: [PATCH 2/3] Update release-trigger.yml --- .github/release-trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml index d4ca94189..bc114417c 100644 --- a/.github/release-trigger.yml +++ b/.github/release-trigger.yml @@ -1 +1 @@ -enabled: true +enabled: false From d5645cfccf95b54a0a76b1ea2b1f569f12b3e552 Mon Sep 17 00:00:00 2001 From: Shanujan Suresh <207912128+shanujans@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:07:05 +0530 Subject: [PATCH 3/3] Update codegen_instructions.md --- codegen_instructions.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/codegen_instructions.md b/codegen_instructions.md index 70fb8a4e0..75d3dfad4 100644 --- a/codegen_instructions.md +++ b/codegen_instructions.md @@ -118,6 +118,16 @@ The `google-genai` library requires creating a client object for all API calls. user: - **Gemini 2.0 Series**: `gemini-2.0-flash`, `gemini-2.0-flash-lite` +> **⚠️ Known limitation — Gemini 2.5 series (CJK languages):** All Gemini 2.5 +> models (`gemini-2.5-flash`, `gemini-2.5-pro`, `gemini-2.5-flash-lite`) +> currently fail to correctly process CJK (Japanese, Chinese, Korean) text +> input via the REST API. The model may interpret valid UTF-8 CJK characters as +> garbled/corrupted text. Google Search Grounding is also affected — +> `webSearchQueries` returns empty `[]` for CJK input on these models. +> **If your application requires CJK language input, use `gemini-3-pro-preview` +> or another Gemini 3.x model as a workaround until this is resolved.** +> See [issue #2134](https://github.com/googleapis/python-genai/issues/2134). + - Do not use the following deprecated models (or their variants like `gemini-1.5-flash-latest`): - **Prohibited:** `gemini-1.5-flash` @@ -571,6 +581,14 @@ print(f"Search Pages: {', '.join([site.web.title for site in response.candidates The output `response.text` will likely not be in JSON format, do not attempt to parse it as JSON. +> **⚠️ Known limitation — CJK languages with Gemini 2.5:** Search Grounding +> does not work correctly with CJK (Japanese, Chinese, Korean) input on any +> Gemini 2.5 model. `webSearchQueries` returns an empty list `[]` and the model +> treats the input as garbled text. English input on the same models works +> correctly. **Use a Gemini 3.x model (e.g. `gemini-3-pro-preview`) for Search +> Grounding with CJK queries.** +> See [issue #2134](https://github.com/googleapis/python-genai/issues/2134). + ### Content and Part Hierarchy While the simpler API call is often sufficient, you may run into scenarios where