From b5b7025e2e8f5a28f9d3051d36fcadf5bfd0d358 Mon Sep 17 00:00:00 2001 From: delta-cloud-208e Date: Sun, 8 Mar 2026 10:28:17 +0000 Subject: [PATCH] =?UTF-8?q?docs(gemini):=20update=20README=20=E2=80=94=206?= =?UTF-8?q?=20=E2=86=92=2013=20patches,=203.x=20models,=20full=20target=20?= =?UTF-8?q?table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- gemini/README.md | 50 ++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/gemini/README.md b/gemini/README.md index df81c98..011b4a9 100755 --- a/gemini/README.md +++ b/gemini/README.md @@ -2,7 +2,7 @@ Patched Gemini CLI for use with custom API endpoints. -Latest: **v0.32.1** (6 patches). +Latest: **v0.32.1** (13 patches). ## npm Install (Recommended) @@ -25,8 +25,8 @@ npm install -g @google/gemini-cli **Step 2 — Configure settings and environment:** -The npm package includes patched proxy URLs and sandbox fixes (patches 1-4). -You still need to configure auth and env vars (patches 5-6): +The npm package includes all 13 patches baked in (proxy URLs, model defaults, UI, compression). +You still need to configure auth and env vars: **Linux / macOS:** ```bash @@ -85,10 +85,13 @@ gemini -p "Hello" | Patch | What | Included in npm? | |-------|------|:-:| -| 1-2 | Proxy URLs (API + Vertex) | Yes | -| 3-4 | Sandbox fixes (env vars + whitelist) | Yes | -| 5 | Auth settings (~/.gemini/settings.json) | **No — Step 2** | -| 6 | Env vars (GEMINI_API_KEY, BASE_URL) | **No — Step 2** | +| 1-3 | Proxy URLs (API + Vertex) | Yes | +| 4-5 | Sandbox fixes (env vars + whitelist) | Yes | +| 6 | Auth settings (~/.gemini/settings.json) | **No — Step 2** | +| 7-8 | Auto-update registry + commands | Yes | +| 9 | Auto-permissions (YOLO mode) | Yes | +| 10 | Default model constants (3.x) | Yes | +| 11-13 | UI descriptions + compression aliases | Yes | ### Update @@ -104,7 +107,7 @@ curl -fsSL https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/ge This will: 1. Check prerequisites (Node.js >= 20, Python3) 2. Install `@google/gemini-cli` if not present -3. Download and apply 6 patches +3. Download and apply 13 patches 4. Configure auth and env vars 5. Verify with a test prompt @@ -130,19 +133,28 @@ gemini -p "Hello" | # | Target | What | |---|--------|------| | 1 | `gemini_base_url` | Route API through proxy | -| 2 | `vertex_base_url` | Route Vertex AI through proxy | -| 3 | `sanitize_env_url` | Allow URLs in .env files | -| 4 | `auth_env_whitelist` | Allow proxy URL in sandbox | -| 5 | `user_settings` | Set API key auth, disable telemetry | -| 6 | `system_env` | Inject env vars | +| 2 | `vertex_base_url_regional` | Route Vertex AI (regional) through proxy | +| 3 | `vertex_base_url_global` | Route Vertex AI (global) through proxy | +| 4 | `sanitize_env_url` | Allow URLs in .env files | +| 5 | `auth_env_whitelist` | Allow proxy URL in sandbox | +| 6 | `user_settings` | Set API key auth, disable telemetry | +| 7 | `auto_update_registry` | Redirect npm registry to proxy | +| 8 | `auto_update_commands` | Add --registry to update commands | +| 9 | `auto_permissions` | Allow YOLO mode from settings | +| 10 | `default_models` | Override default model constants to 3.x | +| 11 | `model_dialog_desc` | Fix model names in UI picker | +| 12 | `compression_aliases` | Fix compression config aliases | +| 13 | `agent_config_desc` | Fix example model in agent config | ## Available Models -- `gemini-2.5-pro` — Main production model -- `gemini-2.5-flash` — Fast model (default) -- `gemini-2.5-flash-lite` — Fastest, lightweight -- `gemini-3-pro-preview` — Next generation (preview) -- `gemini-3-flash-preview` — Next gen Flash (preview) +- `gemini-3.1-pro-preview` — Main production model (default) +- `gemini-3.1-pro-high` — High quality variant +- `gemini-3.1-pro-low` — Fast variant +- `gemini-3-pro-preview` — Gemini 3.0 Pro +- `gemini-3-flash-preview` — Fast model +- `gemini-2.5-pro` — Legacy (still available) +- `gemini-2.5-flash` — Legacy fast ## Troubleshooting @@ -167,7 +179,7 @@ sudo python3 gemini_patcher.py --rollback | File | Purpose | |------|---------| -| `gemini_patcher.py` | Main patcher — detects Gemini CLI, applies 6 patches | +| `gemini_patcher.py` | Main patcher — detects Gemini CLI, applies 13 patches | | `gemini_config.json` | Config — proxy URL, API key, models | | `ugemini_install.sh` | One-line installer | | `releases/index.json` | Version index |