Open rskonieczka opened 1 month ago
This error occurs due to a version conflict between the required OpenAI PHP client versions. First You should update composer packages:
composer update
Or You can try to update your OpenAI PHP client to match the required version. You can do this by running:
composer require openai-php/client:^0.8.5
Let me know if you managed to solve the problem?
Thanks for sending the solution. Unfortunately, some packages require a newer version of openai-php/client ^0.10. v. 0.8.5 you suggested is too outdated. I’m attaching the logs below.
./composer.json has been updated
Running composer update openai-php/client
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires openai-php/client ^0.8.5, found openai-php/client[v0.8.5, 0.8.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 2
- openai-php/laravel is locked to version v0.10.2 and an update of this package was not requested.
- openai-php/laravel v0.10.2 requires openai-php/client ^0.10.2 -> found openai-php/client[v0.10.2, 0.10.x-dev] but it conflicts with your root composer.json require (^0.8.5).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Ok, I've upgraded the openai-client versions to support 0.9.x and 0.10.x
Problem 1