From 51330c0ee631de49f6cc5f7b7436c00cab62d38f Mon Sep 17 00:00:00 2001 From: Nie Ronghua <40586915+NieRonghua@users.noreply.github.com> Date: Wed, 10 Dec 2025 10:47:45 +0800 Subject: [PATCH] fix(App.deleted_tools): incorrect compare between UUID and map with string-typed key. (#29340) Co-authored-by: 01393547 Co-authored-by: Yeuoly <45712896+Yeuoly@users.noreply.github.com> --- api/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/model.py b/api/models/model.py index 1731ff5699..6b0bf4b4a2 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -259,7 +259,7 @@ class App(Base): provider_id = tool.get("provider_id", "") if provider_type == ToolProviderType.API: - if uuid.UUID(provider_id) not in existing_api_providers: + if provider_id not in existing_api_providers: deleted_tools.append( { "type": ToolProviderType.API,