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: invoke_error is not callable (#15555)

jiangbo721037f200527bd
diff --git a/api/core/model_runtime/model_providers/__base/ai_model.py b/api/core/model_runtime/model_providers/__base/ai_model.py
index cdd1bba6beb..bd055900181 100644
--- a/api/core/model_runtime/model_providers/__base/ai_model.py
+++ b/api/core/model_runtime/model_providers/__base/ai_model.py
@@ -80,7 +80,7 @@ class AIModel(BaseModel):
)
)
elif isinstance(invoke_error, InvokeError):
- return invoke_error(description=f"[{self.provider_name}] {invoke_error.description}, {str(error)}")
+ return InvokeError(description=f"[{self.provider_name}] {invoke_error.description}, {str(error)}")
else:
return error