mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Implement llama-server command parsing and add UI components for command input
This commit is contained in:
@@ -83,6 +83,18 @@ export const serverApi = {
|
||||
getDevices: () => apiCall<string>("/server/devices", {}, "text"),
|
||||
};
|
||||
|
||||
// Backend API functions
|
||||
export const backendsApi = {
|
||||
llamaCpp: {
|
||||
// POST /backends/llama-cpp/parse-command
|
||||
parseCommand: (command: string) =>
|
||||
apiCall<CreateInstanceOptions>('/backends/llama-cpp/parse-command', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ command }),
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
// Instance API functions
|
||||
export const instancesApi = {
|
||||
// GET /instances
|
||||
|
||||
Reference in New Issue
Block a user