Skip to content

Commit

Permalink
fix(model_runtime): make invoke as ValueError
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 21, 2024
1 parent 786cb68 commit d0f784a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/model_runtime/errors/invoke.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional


class InvokeError(Exception):
class InvokeError(ValueError):
"""Base class for all LLM exceptions."""

description: Optional[str] = None
Expand Down

0 comments on commit d0f784a

Please sign in to comment.