Skip to content

Commit 55180e6

Browse files
committed
update check for isStreaming()
1 parent ad3b21b commit 55180e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/handlers/services/requestContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export class RequestContext {
8787
}
8888

8989
get isStreaming(): boolean {
90+
if (this.endpoint === 'imageEdit' && this.requestBody instanceof FormData)
91+
return this.requestBody.get('stream') === 'true';
9092
return this.params.stream === true;
9193
}
9294

0 commit comments

Comments
 (0)