There's no real benefit to streaming if you are planning to use the LLM output downstream (say, in a SQL query). LLM latency is a major annoyance right now, whether locally-hosted or cloud-based.
Yea, that is probably a better solution. Not an easy one to refactor into at the moment though.