mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Update server API functions to use /backends/llama-cpp path
This commit is contained in:
@@ -63,16 +63,16 @@ async function apiCall<T>(
|
||||
}
|
||||
}
|
||||
|
||||
// Server API functions
|
||||
// Server API functions (moved to llama-cpp backend)
|
||||
export const serverApi = {
|
||||
// GET /server/help
|
||||
getHelp: () => apiCall<string>("/server/help", {}, "text"),
|
||||
// GET /backends/llama-cpp/help
|
||||
getHelp: () => apiCall<string>("/backends/llama-cpp/help", {}, "text"),
|
||||
|
||||
// GET /server/version
|
||||
getVersion: () => apiCall<string>("/server/version", {}, "text"),
|
||||
// GET /backends/llama-cpp/version
|
||||
getVersion: () => apiCall<string>("/backends/llama-cpp/version", {}, "text"),
|
||||
|
||||
// GET /server/devices
|
||||
getDevices: () => apiCall<string>("/server/devices", {}, "text"),
|
||||
// GET /backends/llama-cpp/devices
|
||||
getDevices: () => apiCall<string>("/backends/llama-cpp/devices", {}, "text"),
|
||||
};
|
||||
|
||||
// Backend API functions
|
||||
|
||||
Reference in New Issue
Block a user