mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-12-24 10:04:26 +00:00
Implement ConfigContext for instance defaults
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { CreateInstanceOptions, Instance } from "@/types/instance";
|
||||
import type { AppConfig } from "@/types/config";
|
||||
import { handleApiError } from "./errorUtils";
|
||||
|
||||
// Adding baseURI as a prefix to support being served behind a subpath
|
||||
@@ -73,6 +74,9 @@ export const serverApi = {
|
||||
|
||||
// GET /backends/llama-cpp/devices
|
||||
getDevices: () => apiCall<string>("/backends/llama-cpp/devices", {}, "text"),
|
||||
|
||||
// GET /config
|
||||
getConfig: () => apiCall<AppConfig>("/config"),
|
||||
};
|
||||
|
||||
// Backend API functions
|
||||
|
||||
Reference in New Issue
Block a user