Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Nie Ronghua51330c0ee631
diff --git a/api/models/model.py b/api/models/model.py
index 1731ff5699d..6b0bf4b4a2b 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,