Fix: When editing an Agent, selecting custom tools does not allow filtering by labels. (#6197)

Co-authored-by: dufei <du_fei@venusgroup.com.cn>
This commit is contained in:
dufei 2024-07-12 09:02:25 +08:00 committed by GitHub
parent 10dd0f3fa0
commit 109de52fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -429,6 +429,7 @@ class ApiToolManageService:
db_provider=provider,
decrypt_credentials=True
)
user_provider.labels = labels
# add icon
ToolTransformService.repack_provider(user_provider)