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(model_runtime): make invoke as ValueError (#11929)

-LAN-455791b710c7
diff --git a/api/core/model_runtime/errors/invoke.py b/api/core/model_runtime/errors/invoke.py
index edfb19c7d07..76754253611 100644
--- a/api/core/model_runtime/errors/invoke.py
+++ b/api/core/model_runtime/errors/invoke.py
@@ -1,7 +1,7 @@
from typing import Optional
-class InvokeError(Exception):
+class InvokeError(ValueError):
"""Base class for all LLM exceptions."""
description: Optional[str] = None