Update BASE_URL

This commit is contained in:
Gleb 2024-11-16 23:10:45 +03:00 committed by GitHub
parent 708b03c2f2
commit 98affeb2a7
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;