mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-05 16:44:22 +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 = {
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user