What happened?
public function chat(Request $request)
{
$message = $request->input('message');
$agent = WeatherAgent::for(auth()->id());
// Return a streamable response
return $agent->streamResponse($message, 'plain');
}
This leds to a ob_flush error in Laravel. I'm using Laravel 12 and tried PHP 8.3 and 8.4.
How to reproduce the bug
I've created a repo with minimal setup (Laravel Breeze + React): https://github.com/shininglove/laragent-repro
Package Version
0.5
PHP Version
8.4
Laravel Version
12
Which operating systems does with happen with?
Linux
Notes
No response