Skip to content

Commit 0f305e9

Browse files
committed
feat(core): align image_generate model guidance with subagent
1 parent 3ad1ac9 commit 0f305e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/src/tool/plugin/image-generate.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const EXTENSIONS: Record<string, string> = {
3535
const PREFERRED_FAMILIES = ["gpt-image", "gemini-flash", "gemini-pro", "grok", "flux"]
3636

3737
export const description =
38-
"Generate or edit an image. Pass images to edit them or to guide style and subject. To make several images, call the tool once per image with distinct prompts. Omit model to use the default; to choose one, find image models with the models tool and type: \"image\". Runs in the background: the call returns right away and you are notified when the image is saved; then use the read tool on its path to view it, and mention the path to the user. Don't poll or wait for it. Each call costs money, so don't regenerate unless asked or the result is clearly wrong."
38+
"Generate or edit an image. Pass images to edit them or to guide style and subject. To make several images, call the tool once per image with distinct prompts. Omit model to use the default. Runs in the background: the call returns right away and you are notified when the image is saved; then use the read tool on its path to view it, and mention the path to the user. Don't poll or wait for it. Each call costs money, so don't regenerate unless asked or the result is clearly wrong."
3939

4040
export const Input = Schema.Struct({
4141
prompt: Schema.String.check(Schema.isMinLength(1)).annotate({
@@ -50,7 +50,7 @@ export const Input = Schema.Struct({
5050
}),
5151
model: Schema.optionalKey(Schema.String).annotate({
5252
description:
53-
'NEVER set this unless the user explicitly asks for a particular image model or variant. The value is written as "providerID/modelID", or "providerID/modelID#variant" to include a variant. Do not guess the ID: look it up with the models tool using type: "image".',
53+
'NEVER set this unless the user explicitly asks for a particular image model or variant. The value is written as "providerID/modelID", or "providerID/modelID#variant" to include a variant. Do not guess the ID: look it up with the models tool using type: "image", filtering to your own provider first.',
5454
}),
5555
path: Schema.optionalKey(Schema.String).annotate({
5656
description:

0 commit comments

Comments
 (0)