-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
Description
Laravel Package Version
1.0.18
Laravel Version
12
PHP Version
8.4
System Info
macOS 15.6, Laravel Herd, PHP 8.4
Description
I'm developing an AI chat app, using Inertia, installed boost on the project and whenever the response is a strem I get the followint error:
local.ERROR: str_contains(): Argument #1 ($haystack) must be of type string, false given {"userId":1,"exception":"[object] (TypeError(code: 0): str_contains(): Argument #1 ($haystack) must be of type string, false given at vendor/laravel/boost/src/Middleware/InjectBoost.php:41
vendor/laravel/boost/src/Middleware/InjectBoost.php(41): str_contains(false, '<html')
vendor/laravel/boost/src/Middleware/InjectBoost.php(20): Laravel\\Boost\\Middleware\\InjectBoost->shouldInject(Object(Symfony\\Component\\HttpFoundation\\StreamedResponse))
As soon as I disable boost the error goes away
Steps To Reproduce
Create a laravel 12 project with Inertia and react, install prism or openai-php/client. Send a message from the frontend and create the response of the llm with stream.
antonL95