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: IntegrityError import wrong (#1868)

takatost3b668c0bb149
diff --git a/api/core/provider_manager.py b/api/core/provider_manager.py
index df4157c1f21..da5fcaf4585 100644
--- a/api/core/provider_manager.py
+++ b/api/core/provider_manager.py
@@ -3,7 +3,7 @@ from collections import defaultdict
from json import JSONDecodeError
from typing import Optional
-from psycopg2 import IntegrityError
+from sqlalchemy.exc import IntegrityError
from core.entities.model_entities import DefaultModelEntity, DefaultModelProviderEntity
from core.entities.provider_configuration import ProviderConfigurations, ProviderConfiguration, ProviderModelBundle