mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 17:14:28 +00:00
Add node selection functionality to InstanceSettingsCard and define Node API
This commit is contained in:
@@ -106,6 +106,21 @@ export const backendsApi = {
|
||||
},
|
||||
};
|
||||
|
||||
// Node API types
|
||||
export interface NodeResponse {
|
||||
name: string;
|
||||
address: string;
|
||||
}
|
||||
|
||||
// Node API functions
|
||||
export const nodesApi = {
|
||||
// GET /nodes
|
||||
list: () => apiCall<NodeResponse[]>("/nodes"),
|
||||
|
||||
// GET /nodes/{name}
|
||||
get: (name: string) => apiCall<NodeResponse>(`/nodes/${name}`),
|
||||
};
|
||||
|
||||
// Instance API functions
|
||||
export const instancesApi = {
|
||||
// GET /instances
|
||||
|
||||
Reference in New Issue
Block a user