Update server API functions to use /backends/llama-cpp path

This commit is contained in:
2025-09-23 21:28:23 +02:00
parent 30e40ecd30
commit 71a48aa3b6

View File

@@ -63,16 +63,16 @@ async function apiCall<T>(
} }
} }
// Server API functions // Server API functions (moved to llama-cpp backend)
export const serverApi = { export const serverApi = {
// GET /server/help // GET /backends/llama-cpp/help
getHelp: () => apiCall<string>("/server/help", {}, "text"), getHelp: () => apiCall<string>("/backends/llama-cpp/help", {}, "text"),
// GET /server/version // GET /backends/llama-cpp/version
getVersion: () => apiCall<string>("/server/version", {}, "text"), getVersion: () => apiCall<string>("/backends/llama-cpp/version", {}, "text"),
// GET /server/devices // GET /backends/llama-cpp/devices
getDevices: () => apiCall<string>("/server/devices", {}, "text"), getDevices: () => apiCall<string>("/backends/llama-cpp/devices", {}, "text"),
}; };
// Backend API functions // Backend API functions