From 71a48aa3b672de13f4161b04deb8053cb5669be0 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Tue, 23 Sep 2025 21:28:23 +0200 Subject: [PATCH] Update server API functions to use /backends/llama-cpp path --- webui/src/lib/api.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webui/src/lib/api.ts b/webui/src/lib/api.ts index a170246..be9ab80 100644 --- a/webui/src/lib/api.ts +++ b/webui/src/lib/api.ts @@ -63,16 +63,16 @@ async function apiCall( } } -// Server API functions +// Server API functions (moved to llama-cpp backend) export const serverApi = { - // GET /server/help - getHelp: () => apiCall("/server/help", {}, "text"), + // GET /backends/llama-cpp/help + getHelp: () => apiCall("/backends/llama-cpp/help", {}, "text"), - // GET /server/version - getVersion: () => apiCall("/server/version", {}, "text"), + // GET /backends/llama-cpp/version + getVersion: () => apiCall("/backends/llama-cpp/version", {}, "text"), - // GET /server/devices - getDevices: () => apiCall("/server/devices", {}, "text"), + // GET /backends/llama-cpp/devices + getDevices: () => apiCall("/backends/llama-cpp/devices", {}, "text"), }; // Backend API functions