diff --git a/packages/studio/src/muapi.js b/packages/studio/src/muapi.js index 4a008b5..fb15023 100644 --- a/packages/studio/src/muapi.js +++ b/packages/studio/src/muapi.js @@ -1,11 +1,10 @@ import { getModelById, getVideoModelById, getI2IModelById, getI2VModelById, getV2VModelById, getLipSyncModelById } from './models.js'; -const BASE_URL = 'https://api.muapi.ai'; // Legacy direct URL -const PROXY_APP_BASE = '/api/app'; +const BASE_URL = 'https://api.muapi.ai'; const PROXY_WF_BASE = '/api/workflow'; async function pollForResult(requestId, key, maxAttempts = 900, interval = 2000) { - const pollUrl = `${PROXY_APP_BASE}/v1/predictions/${requestId}/result`; + const pollUrl = `${BASE_URL}/api/v1/predictions/${requestId}/result`; for (let attempt = 1; attempt <= maxAttempts; attempt++) { await new Promise(resolve => setTimeout(resolve, interval)); try {