fix: use image edits for gpt references

This commit is contained in:
2026-05-18 06:48:19 +08:00
parent a33287f511
commit e07af781a4
2 changed files with 16 additions and 4 deletions

View File

@@ -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()
}