fix(App.deleted_tools): incorrect compare between UUID and map with string-typed key. (#29340)

Co-authored-by: 01393547 <nieronghua@sf-express.com>
Co-authored-by: Yeuoly <45712896+Yeuoly@users.noreply.github.com>
This commit is contained in:
Nie Ronghua
2025-12-10 10:47:45 +08:00
committed by GitHub
parent 7df360a292
commit 51330c0ee6

View File

@@ -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,