diff --git a/appbuilder/core/components/text_to_image/component.py b/appbuilder/core/components/text_to_image/component.py index 42b8525a9..1824b9bc6 100644 --- a/appbuilder/core/components/text_to_image/component.py +++ b/appbuilder/core/components/text_to_image/component.py @@ -203,7 +203,7 @@ def tool_eval( 'text': result.content['img_urls'][0], } except Exception as e: - result = f'绘图时发生错误:{e}' + raise AppBuilderServerException(f'绘图时发生错误:{e}') if streaming: yield result else: