feat: Delete Model Provider #2376 (#2565)

### What problem does this PR solve?

feat: Delete Model Provider #2376

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-09-24 19:10:06 +08:00
committed by GitHub
parent 91dbce30bd
commit 9251fb39af
6 changed files with 51 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const {
set_tenant_info,
add_llm,
delete_llm,
deleteFactory,
getSystemStatus,
getSystemVersion,
} = api;
@ -81,6 +82,10 @@ const methods = {
url: getSystemVersion,
method: 'get',
},
deleteFactory: {
url: deleteFactory,
method: 'post',
},
} as const;
const userService = registerServer<keyof typeof methods>(methods, request);