feat: display the version and backend service status on the page (#848)

### What problem does this PR solve?

#643 feat: display the version and backend service status on the page

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-05-20 18:28:36 +08:00
committed by GitHub
parent 9a01d1b876
commit 93b35f4e58
21 changed files with 286 additions and 7 deletions

View File

@ -16,6 +16,8 @@ const {
set_tenant_info,
add_llm,
delete_llm,
getSystemStatus,
getSystemVersion,
} = api;
const methods = {
@ -71,6 +73,14 @@ const methods = {
url: delete_llm,
method: 'post',
},
getSystemStatus: {
url: getSystemStatus,
method: 'get',
},
getSystemVersion: {
url: getSystemVersion,
method: 'get',
},
} as const;
const userService = registerServer<keyof typeof methods>(methods, request);