mirror of https://github.com/langgenius/dify.git
fix(model_runtime): make invoke as ValueError (#11929)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
90323cd355
commit
455791b710
|
|
@ -1,7 +1,7 @@
|
|||
from typing import Optional
|
||||
|
||||
|
||||
class InvokeError(Exception):
|
||||
class InvokeError(ValueError):
|
||||
"""Base class for all LLM exceptions."""
|
||||
|
||||
description: Optional[str] = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue