diff --git a/examples/pipelines/providers/google_manifold_pipeline.py b/examples/pipelines/providers/google_manifold_pipeline.py index 916a961..acae5ce 100644 --- a/examples/pipelines/providers/google_manifold_pipeline.py +++ b/examples/pipelines/providers/google_manifold_pipeline.py @@ -121,9 +121,7 @@ class Pipeline: if body["stream"]: print("Streaming response") - for chunk in response: - yield chunk.text - return "" + return (chunk.text for chunk in response) else: print("Non-streaming response") result = response.text