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: fix all tools is deleted (#32207)

wangxiaolei36e50f277f3d
diff --git a/api/models/model.py b/api/models/model.py
index b531afcf4c2..be4e5b819a0 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -227,7 +227,7 @@ class App(Base):
with Session(db.engine) as session:
if api_provider_ids:
existing_api_providers = [
- api_provider.id
+ str(api_provider.id)
for api_provider in session.execute(
text("SELECT id FROM tool_api_providers WHERE id IN :provider_ids"),
{"provider_ids": tuple(api_provider_ids)},