feat(dbgpts): dbgpts module add

This commit is contained in:
yhjun1026
2024-08-23 15:07:35 +08:00
parent 276bc4ba31
commit 2543126555
3 changed files with 0 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -440,7 +440,6 @@ class ExampleFlowTextAreaOperator(MapOperator[str, str]):
class ExampleFlowSliderOperator(MapOperator[float, float]):
metadata = ViewMetadata(
label="Example Flow Slider",
name="example_flow_slider",