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
+2
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
}
);