gcui-art / suno-api

Use API to call the music generation AI of suno.ai, and easily integrate it into agents like GPTs.
https://suno.gcui.ai
GNU Lesser General Public License v3.0
1.48k stars 351 forks source link

Fix errors when extending song #188

Closed tmirkovic closed 1 week ago

tmirkovic commented 2 weeks ago

Was getting errors when trying to extend a song.

Invalid Request Errors

Request would fail with:

Error extend audio: {"detail":"Invalid request. Inconsistent task and generation params"}

Adding task: 'extend' to payload to match Suno client seems to resolve issue

Unauthorized Errors

Another issue would happen only when extend song route was called first before other routes:

Error extend audio: {"detail":"Unauthorized"}

Likely same issue as described here: https://github.com/gcui-art/suno-api/issues/172 https://github.com/gcui-art/suno-api/issues/71

Resolved by calling keepAlive before extend song request

vercel[bot] commented 2 weeks ago

@tmirkovic is attempting to deploy a commit to the Linkly AI LLC's projects Team on Vercel.

A member of the Team first needs to authorize it.