Merge pull request #193 from gohoski/patch-1
Update BASE_URL and implement hCaptcha solving
This commit is contained in:
		
						commit
						419a88e33a
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user