🦄 refactor: opt params
This commit is contained in:
parent
ed7fb28e34
commit
4174ca8009
@ -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,
|
||||
|
@ -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), {
|
||||
|
Loading…
Reference in New Issue
Block a user