fix: use image edits for gpt references
This commit is contained in:
@@ -233,7 +233,7 @@ export async function generateProductAngleAsset(
|
||||
})
|
||||
if (!res.ok) {
|
||||
const txt = await res.text().catch(() => "")
|
||||
throw new Error(`generateProductAngleAsset ${res.status} ${txt.slice(0, 300)}`)
|
||||
throw apiError("generateProductAngleAsset", res.status, txt)
|
||||
}
|
||||
return res.json()
|
||||
}
|
||||
@@ -1098,7 +1098,7 @@ export async function generateSubjectAssets(
|
||||
})
|
||||
if (!res.ok) {
|
||||
const txt = await res.text().catch(() => "")
|
||||
throw new Error(`subjectAssets ${res.status} ${txt.slice(0, 300)}`)
|
||||
throw apiError("subjectAssets", res.status, txt)
|
||||
}
|
||||
return res.json()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user