From c07fa08b995e8d1a1fc2d94a88d8cea691bdc5ee Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 21 Sep 2026 11:45:49 -0400 Subject: [PATCH] refac --- src/lib/apis/images/index.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lib/apis/images/index.ts b/src/lib/apis/images/index.ts index ad2f79d731..3717093798 100644 --- a/src/lib/apis/images/index.ts +++ b/src/lib/apis/images/index.ts @@ -258,14 +258,12 @@ export const imageEdits = async ( ...(token && { authorization: `Bearer ${token}` }) }, body: JSON.stringify({ - form_data: { - image: images, - prompt, - ...(model && { model }), - ...(size && { size }), - ...(n && { n }), - ...(background && { background }) - } + image: images, + prompt, + ...(model && { model }), + ...(size && { size }), + ...(n && { n }), + ...(background && { background }) }) }) .then(async (res) => {