Merge pull request #188 from tmirkovic/fix-song-extend

Fix errors when extending song
This commit is contained in:
blueeon 2024-11-16 23:36:01 +08:00 committed by GitHub
commit c82e4c30b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,6 +368,7 @@ class SunoApi {
title: string = '',
model?: string
): Promise<AudioInfo> {
await this.keepAlive(false);
const response = await this.client.post(
`${SunoApi.BASE_URL}/api/generate/v2/`,
{
@ -376,6 +377,7 @@ class SunoApi {
mv: model || DEFAULT_MODEL,
prompt: prompt,
tags: tags,
task: 'extend',
title: title
}
);