Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/tasks/src/tasks/image-to-image/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ export interface ImageToImageParameters {
*/
prompt?: string;
/**
* The size in pixel of the output image.
* The size in pixels of the output image. This parameter is only supported by some
* providers and for specific models. It will be ignored when unsupported.
*/
target_size?: TargetSize;
[property: string]: unknown;
}
/**
* The size in pixel of the output image.
* The size in pixels of the output image. This parameter is only supported by some
* providers and for specific models. It will be ignored when unsupported.
*/
export interface TargetSize {
height: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/tasks/src/tasks/image-to-image/spec/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"target_size": {
"type": "object",
"description": "The size in pixel of the output image.",
"description": "The size in pixels of the output image. This parameter is only supported by some providers and for specific models. It will be ignored when unsupported.",
"properties": {
"width": {
"type": "integer"
Expand Down
Loading