Merge pull request #188 from tmirkovic/fix-song-extend
Fix errors when extending song
This commit is contained in:
commit
c82e4c30b1
@ -368,6 +368,7 @@ class SunoApi {
|
|||||||
title: string = '',
|
title: string = '',
|
||||||
model?: string
|
model?: string
|
||||||
): Promise<AudioInfo> {
|
): Promise<AudioInfo> {
|
||||||
|
await this.keepAlive(false);
|
||||||
const response = await this.client.post(
|
const response = await this.client.post(
|
||||||
`${SunoApi.BASE_URL}/api/generate/v2/`,
|
`${SunoApi.BASE_URL}/api/generate/v2/`,
|
||||||
{
|
{
|
||||||
@ -376,6 +377,7 @@ class SunoApi {
|
|||||||
mv: model || DEFAULT_MODEL,
|
mv: model || DEFAULT_MODEL,
|
||||||
prompt: prompt,
|
prompt: prompt,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
|
task: 'extend',
|
||||||
title: title
|
title: title
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user