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.

Update the provider_id validation to fix the error message displayed … (#15466)

Yu Chun Chang6d172498d164
diff --git a/api/models/model.py b/api/models/model.py
index 87806eb9181..bf212e80366 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -257,7 +257,7 @@ class App(Base):
provider_id = tool.get("provider_id", "")
if provider_type == ToolProviderType.API.value:
- if provider_id not in existing_api_providers:
+ if uuid.UUID(provider_id) not in existing_api_providers:
deleted_tools.append(
{
"type": ToolProviderType.API.value,