[BUG] stream=True in pf.run() or PFClient.runs.create_or_update() does not stream output
Author: stewartadamCreated Feb 16, 2024Updated Apr 29, 2025
Labelsbuglong-term
Describe the bug The issue described in #1218 persists and stream=True does not stream flow output.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
- Create a run from YML (or any other way):
run = pf.load_run(flow_path / "run.yml") - Try to create the run and stream logs:
run = pfclient.runs.create_or_update(run, stream=True)
Expected behavior Run execution starts and logs are streamed to stdout
actual behavior PromptFlow output shows the run is starting then nothing until the run completes
Running Information(please complete the following information):
- Promptflow Package Version using
pf -v: 1.5.0 - Operating System: MacOS 14.3.1
- Python Version using
python --version: Python (Darwin) 3.9.18 (main, Sep 11 2023, 08:38:23)
Source: microsoft/promptflow