Skip to content

Commit

Permalink
add an API of delete llm supplier (infiniflow#2556)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

infiniflow#1853

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
  • Loading branch information
KevinHuSh authored Sep 24, 2024
1 parent 94b41a0 commit bce19da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/apps/llm_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit bce19da

Please sign in to comment.