From 0327ded7d121550bbd8594e2c907f814157b9afa Mon Sep 17 00:00:00 2001 From: -LAN- Date: Sat, 21 Dec 2024 17:15:06 +0800 Subject: [PATCH] fix: change OutputParserError to inherit from ValueError Signed-off-by: -LAN- --- api/core/llm_generator/output_parser/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/llm_generator/output_parser/errors.py b/api/core/llm_generator/output_parser/errors.py index 1e743f1757473e..0922806ca88ce6 100644 --- a/api/core/llm_generator/output_parser/errors.py +++ b/api/core/llm_generator/output_parser/errors.py @@ -1,2 +1,2 @@ -class OutputParserError(Exception): +class OutputParserError(ValueError): pass