refine multi-turn chat in agent (#2560)

### What problem does this PR solve?

#2484

### Type of change

- [x] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
Kevin Hu
2024-09-24 16:20:19 +08:00
committed by GitHub
parent 832c90ac3e
commit d40041cc82
2 changed files with 6 additions and 1 deletions

View File

@ -287,7 +287,7 @@ def delete_llm():
@manager.route('/delete_factory', methods=['POST'])
@login_required
@validate_request("llm_factory")
def delete_llm():
def delete_factory():
req = request.json
TenantLLMService.filter_delete(
[TenantLLM.tenant_id == current_user.id, TenantLLM.llm_factory == req["llm_factory"]])