Skip to content

Commit 73a42a3

Browse files
committed
fix: update ExtensionStateContext test to include imageGeneration experiment
1 parent f65866a commit 73a42a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/prompts/tools/generate-image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ToolArgs } from "./types"
22

33
export function getGenerateImageDescription(args: ToolArgs): string {
44
return `## generate_image
5-
Description: Request to generate an image using AI models through OpenRouter API. This tool creates images from text prompts and saves them to the specified path. Requires OpenRouter API key to be configured in experimental settings.
5+
Description: Request to generate an image using AI models through OpenRouter API. This tool creates images from text prompts and saves them to the specified path.
66
Parameters:
77
- prompt: (required) The text prompt describing the image to generate
88
- path: (required) The file path where the generated image should be saved (relative to the current workspace directory ${args.cwd}). The tool will automatically add the appropriate image extension if not provided.

webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ describe("mergeExtensionState", () => {
249249
multiFileApplyDiff: true,
250250
preventFocusDisruption: false,
251251
newTaskRequireTodos: false,
252+
imageGeneration: false,
252253
})
253254
})
254255
})

0 commit comments

Comments
 (0)