🦄 refactor: opt params

This commit is contained in:
blueeon 2024-06-08 14:16:53 +08:00
parent ed7fb28e34
commit 4174ca8009
2 changed files with 4 additions and 4 deletions

View File

@ -21,9 +21,9 @@ export async function POST(req: NextRequest) {
}
const audioInfo = await (await sunoApi).custom_generate(
prompt, tags, title,
make_instrumental == true,
Boolean(make_instrumental),
model || DEFAULT_MODEL,
wait_audio == true
Boolean(wait_audio)
);
return new NextResponse(JSON.stringify(audioInfo), {
status: 200,

View File

@ -22,9 +22,9 @@ export async function POST(req: NextRequest) {
const audioInfo = await (await sunoApi).generate(
prompt,
make_instrumental == true,
Boolean(make_instrumental),
model || DEFAULT_MODEL,
wait_audio == true
Boolean(wait_audio)
);
return new NextResponse(JSON.stringify(audioInfo), {