diff --git a/dbgpt/serve/flow/service/service.py b/dbgpt/serve/flow/service/service.py index 1b8a83422..15c9d5ceb 100644 --- a/dbgpt/serve/flow/service/service.py +++ b/dbgpt/serve/flow/service/service.py @@ -623,7 +623,6 @@ class Service(BaseService[ServeEntity, ServeRequest, ServerResponse]): async def _wrapper_chat_stream_flow_str( self, stream_iter: AsyncIterator[ModelOutput] ) -> AsyncIterator[str]: - async for output in stream_iter: text = output.text if text: diff --git a/dbgpt/serve/flow/service/share_utils.py b/dbgpt/serve/flow/service/share_utils.py index 99ba222a9..6775c4d4b 100644 --- a/dbgpt/serve/flow/service/share_utils.py +++ b/dbgpt/serve/flow/service/share_utils.py @@ -15,7 +15,6 @@ from ..api.schemas import ServeRequest def _generate_dbgpts_zip(package_name: str, flow: ServeRequest) -> io.BytesIO: - zip_buffer = io.BytesIO() flow_name = flow.name flow_label = flow.label diff --git a/examples/awel/awel_flow_ui_components.py b/examples/awel/awel_flow_ui_components.py index 8a1eb04b0..db92ca09d 100644 --- a/examples/awel/awel_flow_ui_components.py +++ b/examples/awel/awel_flow_ui_components.py @@ -440,7 +440,6 @@ class ExampleFlowTextAreaOperator(MapOperator[str, str]): class ExampleFlowSliderOperator(MapOperator[float, float]): - metadata = ViewMetadata( label="Example Flow Slider", name="example_flow_slider",