mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-25 02:54:29 +08:00
add an API of delete llm supplier (#2556)
### What problem does this PR solve? #1853 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
4681638974
commit
7b3099b1a1
@ -284,6 +284,16 @@ def delete_llm():
|
||||
return get_json_result(data=True)
|
||||
|
||||
|
||||
@manager.route('/delete_factory', methods=['POST'])
|
||||
@login_required
|
||||
@validate_request("llm_factory")
|
||||
def delete_llm():
|
||||
req = request.json
|
||||
TenantLLMService.filter_delete(
|
||||
[TenantLLM.tenant_id == current_user.id, TenantLLM.llm_factory == req["llm_factory"]])
|
||||
return get_json_result(data=True)
|
||||
|
||||
|
||||
@manager.route('/my_llms', methods=['GET'])
|
||||
@login_required
|
||||
def my_llms():
|
||||
|
Loading…
x
Reference in New Issue
Block a user