Merge pull request #193 from gohoski/patch-1

Update BASE_URL and implement hCaptcha solving
This commit is contained in:
blueeon 2024-11-21 12:13:18 +08:00 committed by GitHub
commit 419a88e33a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ export interface AudioInfo {
} }
class SunoApi { class SunoApi {
private static BASE_URL: string = 'https://studio-api.suno.ai'; private static BASE_URL: string = 'https://studio-api.prod.suno.com';
private static CLERK_BASE_URL: string = 'https://clerk.suno.com'; private static CLERK_BASE_URL: string = 'https://clerk.suno.com';
private static JSDELIVR_BASE_URL: string = 'https://data.jsdelivr.com'; private static JSDELIVR_BASE_URL: string = 'https://data.jsdelivr.com';
@ -237,9 +237,10 @@ class SunoApi {
): Promise<AudioInfo[]> { ): Promise<AudioInfo[]> {
await this.keepAlive(false); await this.keepAlive(false);
const payload: any = { const payload: any = {
make_instrumental: make_instrumental == true, make_instrumental: make_instrumental,
mv: model || DEFAULT_MODEL, mv: model || DEFAULT_MODEL,
prompt: '' prompt: '',
generation_type: 'TEXT'
}; };
if (isCustom) { if (isCustom) {
payload.tags = tags; payload.tags = tags;