Skip to content

Commit

Permalink
image plugin fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Nov 4, 2024
1 parent 4552d70 commit d436a2b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/plugins/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class extends Plugin {
}

getDescription(): string {
return 'Generate an image based on a prompt. Returns the path of the image saved on disk and a description of the image. Always embed the image visible in the final response. Do not just include a link to the image.'
return 'Generate an image based on a prompt. Returns the path of the image saved on disk and a description of the image. Create only one image at a time unless explicitely asked to do otherwise. Always embed the image visible in the final response. Do not just include a link to the image.'
}

getPreparationDescription(): string {
Expand Down Expand Up @@ -102,19 +102,19 @@ export default class extends Plugin {
// required: false
// })

parameters.push({
name: 'width',
type: 'number',
description: 'The width of the image',
required: false
})

parameters.push({
name: 'height',
type: 'number',
description: 'The height of the image',
required: false
})
// parameters.push({
// name: 'width',
// type: 'number',
// description: 'The width of the image',
// required: false
// })

// parameters.push({
// name: 'height',
// type: 'number',
// description: 'The height of the image',
// required: false
// })

}

Expand Down

0 comments on commit d436a2b

Please sign in to comment.