From f7511f6f9188117d22cf6cc942585b52e82d78e9 Mon Sep 17 00:00:00 2001 From: swumagic <128472639+swumagic@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:52:44 +0800 Subject: [PATCH] Update SunoApi.ts 4.73.3 fix 4.73.4 Update SunoApi.ts 4.73.2 fix 4.73.3 --- src/lib/SunoApi.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/SunoApi.ts b/src/lib/SunoApi.ts index 0009821..a1c6ea1 100644 --- a/src/lib/SunoApi.ts +++ b/src/lib/SunoApi.ts @@ -19,7 +19,7 @@ export interface AudioInfo { created_at: string; // Date and time when the audio was created model_name: string; // Name of the model used for audio generation gpt_description_prompt?: string; // Prompt for GPT description - prompt?: string; // Prompt for audio generation + prompt?: string; // Prompt for audio generation  status: string; // Status type?: string; tags?: string; // Genre of music. @@ -65,7 +65,7 @@ class SunoApi { */ private async getAuthToken() { // URL to get session ID - const getSessionUrl = `${SunoApi.CLERK_BASE_URL}/v1/client?_clerk_js_version=4.73.3`; + const getSessionUrl = `${SunoApi.CLERK_BASE_URL}/v1/client?_clerk_js_version=4.73.4`;  // Get session ID const sessionResponse = await this.client.get(getSessionUrl); if (!sessionResponse?.data?.response?.['last_active_session_id']) { @@ -84,7 +84,7 @@ class SunoApi { throw new Error("Session ID is not set. Cannot renew token."); } // URL to renew session token - const renewUrl = `${SunoApi.CLERK_BASE_URL}/v1/client/sessions/${this.sid}/tokens?_clerk_js_version==4.73.3`; + const renewUrl = `${SunoApi.CLERK_BASE_URL}/v1/client/sessions/${this.sid}/tokens?_clerk_js_version==4.73.4`;  // Renew session token const renewResponse = await this.client.post(renewUrl); logger.info("KeepAlive...\n");