Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No PSR-17 stream factory found on production #512

Open
applibs opened this issue Jan 21, 2025 · 0 comments
Open

No PSR-17 stream factory found on production #512

applibs opened this issue Jan 21, 2025 · 0 comments

Comments

@applibs
Copy link

applibs commented Jan 21, 2025

I have same code, same sources, all same libs but on production I got error log message:
No PSR-17 stream factory found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation

This will do the problem:
$ai = \OpenAI\OpenAI::client($api_key);
$ai->chat()->create([...]);

//at this line is problem:
$response = $this->transporter->requestObject($payload);

On local dev environment all working well.
Local dev is Win11 and production Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant