refactor: Update API endpoints to include 'loras' prefix for consistency

This commit is contained in:
Will Miao
2025-07-24 19:56:18 +08:00
parent f15c6f33f9
commit 692796db46
10 changed files with 21 additions and 21 deletions

View File

@@ -59,7 +59,7 @@ export async function loadModelDescription(modelId, filePath) {
descriptionContainer.classList.add('hidden');
// Determine API endpoint based on file path or context
let apiEndpoint = `/api/lora-model-description?model_id=${modelId}&file_path=${encodeURIComponent(filePath)}`;
let apiEndpoint = `/api/loras/model-description?model_id=${modelId}&file_path=${encodeURIComponent(filePath)}`;
// Try to get model description from API
const response = await fetch(apiEndpoint);