diff --git a/static/js/api/apiConfig.js b/static/js/api/apiConfig.js index 8673c929..13d628b7 100644 --- a/static/js/api/apiConfig.js +++ b/static/js/api/apiConfig.js @@ -49,10 +49,6 @@ export const MODEL_CONFIG = { * @returns {Object} Object containing all API endpoints for the model type */ export function getApiEndpoints(modelType) { - if (!Object.values(MODEL_TYPES).includes(modelType)) { - throw new Error(`Invalid model type: ${modelType}`); - } - return { // Base CRUD operations list: `/api/lm/${modelType}/list`,