diff --git a/docs/cli/settings.md b/docs/cli/settings.md index faf3fca3f0..ae012429b6 100644 --- a/docs/cli/settings.md +++ b/docs/cli/settings.md @@ -145,6 +145,7 @@ they appear in the UI. | Use OSC 52 Paste | `experimental.useOSC52Paste` | Use OSC 52 for pasting. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` | | Use OSC 52 Copy | `experimental.useOSC52Copy` | Use OSC 52 for copying. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` | | Plan | `experimental.plan` | Enable planning features (Plan Mode and tools). | `false` | +| Image Generation | `experimental.imageGeneration` | Enable generating images with Nano Banana (experimental). | `false` | | Model Steering | `experimental.modelSteering` | Enable model steering (user hints) to guide the model during tool execution. | `false` | | Direct Web Fetch | `experimental.directWebFetch` | Enable web fetch behavior that bypasses LLM summarization. | `false` | | Enable Gemma Model Router | `experimental.gemmaModelRouter.enabled` | Enable the Gemma Model Router. Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim. | `false` | diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index a6c9ddccfd..e661e488fe 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -1019,6 +1019,11 @@ their corresponding top-level category object in your `settings.json` file. - **Default:** `false` - **Requires restart:** Yes +- **`experimental.imageGeneration`** (boolean): + - **Description:** Enable generating images with Nano Banana (experimental). + - **Default:** `false` + - **Requires restart:** Yes + - **`experimental.modelSteering`** (boolean): - **Description:** Enable model steering (user hints) to guide the model during tool execution. diff --git a/packages/core/src/tools/generate-image.test.ts b/packages/core/src/tools/generate-image.test.ts index 82911e04f1..f1e2435255 100644 --- a/packages/core/src/tools/generate-image.test.ts +++ b/packages/core/src/tools/generate-image.test.ts @@ -8,7 +8,8 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import * as fs from 'node:fs'; import type { GenerateImageParams } from './generate-image.js'; -import { GenerateImageTool , +import { + GenerateImageTool, promptToFilename, getUniqueFilename, validateOutputPath, diff --git a/schemas/settings.schema.json b/schemas/settings.schema.json index b93be1f0e7..0ca3a968d8 100644 --- a/schemas/settings.schema.json +++ b/schemas/settings.schema.json @@ -1707,6 +1707,13 @@ "default": false, "type": "boolean" }, + "imageGeneration": { + "title": "Image Generation", + "description": "Enable generating images with Nano Banana (experimental).", + "markdownDescription": "Enable generating images with Nano Banana (experimental).\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`", + "default": false, + "type": "boolean" + }, "modelSteering": { "title": "Model Steering", "description": "Enable model steering (user hints) to guide the model during tool execution.",